Patrick Steele wrote:
> 
> See the Hashtable.Synchronized() method.
> 
> "A Hashtable can safely support one writer and multiple readers
> concurrently. To support multiple writers, all operations must be
> done through this wrapper only."

Helpfully, this is contradicted by the main documentation for the class
itself:

" To support one or more writers, all operations on the Hashtable must
be done through the wrapper returned by the Synchronized method."

This suggests that synchronization is always required for multithreaded
operation, except for the special case where you initialize your
hashtable during initialization, and thereafter use it from multiple
threads that only ever read from it.

I'm not sure which of those two is actually true...


-- 
Ian Griffiths - DevelopMentor
http://www.interact-sw.co.uk/iangblog/

===================================
This list is hosted by DevelopMentorŪ  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to