From: David Vallner Date: 2006-02-10T22:55:40+09:00 Subject: Re: Thread#stop Dňa Piatok 10 Február 2006 05:10 Joel VanderWerf napísal: > Any ideas? If Thread#stop is a bad idea, what is the right idea in this > case? Letting threads directly play tricks on each other is more of a Q'n'D hack than a real parallelism solution. What you're looking for sounds like a latch construct that the user process opens and closes for the other threads. Brief googling indicates you could use something called a read-write mutex / lock. Maybe there's a ruby implementation out there already, if not, it should be doable via Mutexes and Semaphores. (Do we have Semaphores in the core or stdlib?) David Vallner