[plt-scheme] Synchronizing

From: Robby Findler (robby at cs.uchicago.edu)
Date: Tue Apr 22 16:39:42 EDT 2003

You should probably use channels instead. Have the many threads put
values into the channel and then have one thread takes values out of
the channel and draws them. (Channels are only in the latest CVS
version; in 203 use semaphores (and suffer))


At Tue, 22 Apr 2003 22:35:56 +0200, Katsmall the Wise wrote:
>   For list-related administrative tasks:
>   http://list.cs.brown.edu/mailman/listinfo/plt-scheme
> I would like to make a procedure, that may be called from many threads, 
> but if it is called from two threads at the same time it will block the 
> second one until the first one finishes, and then run it.
> I want this because I have many drawing procedures that merely add 
> something to a list, and appearantly some things get deleted because the 
> procedures are called at the same time.
> Is there a simple solution to this?
> Katsmall the Wise

Posted on the users mailing list.