[plt-scheme] Synchronizing

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

They are in the latest CVS version only. Do you have that one? Have you
downloaded the manuals?

At Tue, 22 Apr 2003 22:45:10 +0200, Katsmall the Wise wrote:
> ------------------------------------------------------------------------------
> The help desk could not find channels. Can you be a bit more specific?
> 
> Katsmall the Wise
> 
> By the way, thanks for the fast responses!
> 
> Robby Findler wrote:
> 
> >  For list-related administrative tasks:
> >  http://list.cs.brown.edu/mailman/listinfo/plt-scheme
> >
> >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))
> >
> >Robby
> >
> >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
> >>
> >>
> >>    
> >>
> >
> >
> >  
> >
> 
> ------------------------------------------------------------------------------
> The help desk could not find channels. Can you be a bit more specific?
> Katsmall the Wise
> By the way, thanks for the fast responses!
> Robby Findler wrote:
> 
>   For list-related administrative tasks:
> 
>   http://list.cs.brown.edu/mailman/listinfo/plt-scheme
> 
> 
> 
> 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))
> 
> 
> 
> Robby
> 
> 
> 
> 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.