From: Joel VanderWerf Date: 2006-02-12T16:46:59+09:00 Subject: Re: Thread#stop David Vallner wrote: > Dňa Piatok 10 Február 2006 21:29 Joel VanderWerf napísal: >> As I understand it, a latch would not serve this purpose. A latch stops >> newly created threads from running until the latch is opened. In ruby >> this would be easy to implement using Thread.stop within the block of >> each thread. Then another thread can wakeup those threads as needed: >> >> th = Thread.new { Thread.stop; do_some_work } >> prepare_for_th_to_run >> th.wakeup > > For some strange reason I thought you were using looping worker threads with > short execution time. Ah well. Well, some are fairly short lived, but those ones are fired off by some "permathreads". In fact, the are so perma that they have a big rescue clause with a retry (for StandardErrors) around everything they do. Still wish I knew how to "freeze frame" all the threads, except the drb threads that are inspecting them... -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407