[plt-scheme] semaphore-value

From: Jos Koot (jos.koot at telefonica.net)
Date: Thu Jul 26 08:42:27 EDT 2007

Thanks for your attention and replies.
Thinking twice I also see how to use a channel and to avoid a duplicate counter.
I dont hate semaphores though :)
Thanks again.

----- Original Message ----- 
From: "Noel Welsh" <noelwelsh at gmail.com>
To: "Jos Koot" <jos.koot at telefonica.net>
Cc: "PLT-list" <plt-scheme at list.cs.brown.edu>
Sent: Thursday, July 26, 2007 2:30 PM
Subject: Re: [plt-scheme] semaphore-value

> On 7/26/07, Jos Koot <jos.koot at telefonica.net> wrote:
>> You mean for increments and decements of the duplicate counter?
>> Yes, that sounds like a good idea. Thanks.
>> Or do you mean something else?
> Both! :-)  I think a channel would simplify your problem with
> implementing a counting semaphore.  However, I hate semaphores and
> would never use them when channels are available.
> N.

Posted on the users mailing list.