[Seaside] Are Collections threadsafe?

goran at krampe.se goran at krampe.se
Mon Feb 25 12:06:32 UTC 2008


Hi!

Malte Zacharias <malte.zacharias at nordakademie.de> wrote:
> Hello list,
> 
> If I access global collections of objects within my Web Application, do
> I have to synchronize access by myself?=20

Yes.
 
> My concerns are whether Dictionaries and OrderedCollections are
> implemented threadsafe or not,=20
> I found some documents that said they aren't but they date back a fair
> while, so I'd like to ask whether any of you has an answer for me..

They are not thread safe. An easy way to serialize accesses is using a
Monitor, see its class comment and references to the class for examples.

regards, Göran


More information about the seaside mailing list