[Seaside] Are Collections threadsafe?
philippe.marschall at gmail.com
Mon Feb 25 13:19:07 UTC 2008
2008/2/25, goran at krampe.se <goran at krampe.se>:
> 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
> > 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.
Monitor, Mutex or Semaphore. Which shall it be? And which works with
with patch set posted where in which Image with which VM? Because
stock Semaphores in stock Images with stock VMs are broken and Mutex
and Monitor build on Semaphore.
> regards, Göran
> seaside mailing list
> seaside at lists.squeakfoundation.org
More information about the seaside