From: Eric Jacoboni Date: 2008-02-21T05:59:57+09:00 Subject: Re: Ruby 1.9, threads and FreeBSD 5 MenTaLguY writes: > Your code is buggy: there is a race condition such that the initial #signal > can get called before any corresponding #waits. Gosh... you're right. Thanks to Guy for the sleep trick and for your PortableSemaphore implementation: i'm gonna investigate it further.