On 14/04/2008, Daniel Cheng <j16sdiz+freenet at gmail.com<j16sdiz%2Bfreenet at gmail.com>> 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://emu.freenetproject.org/pipermail/devl/attachments/20080414/505d2ab2/attachment.html>
