[plt-scheme] semaphore-value

From: Jos Koot (jos.koot at telefonica.net)
Date: Thu Jul 26 07:17:48 EDT 2007

Hi,

----- 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 12:10 PM
Subject: Re: [plt-scheme] semaphore-value


> On 7/25/07, Jos Koot <jos.koot at telefonica.net> wrote:
>> I already built a semaphore struct-type containing a mzscheme's semaphore and 
>> a
>> counter together with a separate semaphore for protection of the counter
>> increments and decrements. The code is complicated because a dead lock is 
>> easily
>> produced and I am not yet sure I did prevent all possibilities of dead locks.
>
> Why not just use a channel?  They are so much easier to reason about.

You mean for increments and decements of the duplicate counter?
Yes, that sounds like a good idea. Thanks.
Or do you mean something else?
Jos Koot

>
> N.
> 



Posted on the users mailing list.