On 14/04/2008, Daniel Cheng
<[EMAIL PROTECTED]<[EMAIL PROTECTED]>>
wrote:
>
>
> Hashtable is threadsafe -- yes, but I prefer using
> Collections.synchronizedMap() and
> java.util.concurrent.ConcurrentHashMap.
>
> When loading is high, ConcurrentHashMap give much better performance
> as it is lock free.
> The sad news is it's only available on java 5/later.



FYI we've successfully used http://backport-jsr166.sourceforge.net/ in other
java 1.4 projects.

Stuart
_______________________________________________
Devl mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl

Reply via email to