Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

So, the question is: does a hashmap implementation exist where accessing and normal writing is not serialized, but expanding the table has the appropriate locks?


In Java, use ConcurrentHashMap.

If you're particularly interested in pushing this to the edge, check out Cliff Click's non-block hash map.


Here you go:

Collections.synchronizedMap(new HashMap());


he wrote "accessing is not serialized"




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: