[plt-scheme] semaphore-value

From: Noel Welsh (noelwelsh at gmail.com)
Date: Thu Jul 26 06:10:17 EDT 2007

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.


Posted on the users mailing list.