MSDN:
"By default, Collections classes are generally not thread safe. Multiple
readers can safely read the collection; however, any modification to the
collection produces undefined results for all threads that access the
collection, including the reader threads."
So, as long as you only read the collections, it's ok. Generally the "thread
safety" is defined by the synchronization of threads when accessing a common
resource, producing/consuming in the same time, but as long as no one
modifies it it's ok.
Anyhow Hashtable is thread safe.
--
Horatiu Ripa
"David" <pi***@hotmail.com> wrote in message
news:9c**************************@posting.google.c om...
Hi guys
I have in my application many collections (HashTable and
ArrayList)loaded with configuration data, that means they are loaded
at startup and then they are accessed only for read-only (items are
only retrieved, never added, removed or replaced).
To be thread-safe after startup do I need to made them Synchronized
(and so slower), or are they thread safe in such case ?
Thanks in advance
David