Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature may not be available in some browsers.
Unlike the new collection implementations, Hashtable is synchronized. If a thread-safe implementation is not needed, it is recommended to use HashMap in place of Hashtable. If a thread-safe highly-concurrent implementation is desired, then it is recommended to use ConcurrentHashMap in place of Hashtable.
www.geeksforgeeks.org
Darf ich fragen woher diese Aussage stammt? Also die Quelle?Hallo
Diese Aussage hat mich überrascht:
"Der Container HashTable kann ohne Performance-Verlust in Multithreaded-Anwendungen eingesetzt werden."
Das hat nix mit Thread-Sicherheit zu tun, dass mehrere Threads da einander Dinge überschreiben können.Thread-Safe ist es meiner Meinung nicht, weil ich könnte ja mehrmals den gleichen Hash-Wert überschreiben.
Bezüglich der Performance würde ich das auch eher als fraglich sehen.