Search This Blog

Showing posts with label concurrency. Show all posts
Showing posts with label concurrency. Show all posts

Concurrent set in java

There is no ConcurrentHashSet class in java but you can get a concurrent set from a ConcurrentHashMap using the following method:
Set set = Collections.newSetFromMap(new ConcurrentHashMap());

See also