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."

---- Original Message ----
From: [EMAIL PROTECTED]
To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM
Subject: RE: [ADVANCED-DOTNET] synchronization
Date: Wed, 9 Feb 2005 11:10:35 -0500

>I'm hitting a global Hashtable with multiple threads each thread
>writing to
>it's own key-value pair in the Hashtable. Since no 2 threads will
>ever write
>to the same key-value pair in the Hashtable, I'm not sure it's
>necessary to
>synchronize access to it. Does anyone know?

===================================
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