From: "ara.t.howard" Date: 2008-04-19T03:24:41+09:00 Subject: Re: forkoff - parallel processing for ruby enumerables On Apr 18, 2008, at 12:19 PM, Erik Veenstra wrote: > I've once implemented Enumerable#fork myself. It doesn't use > queues, or a producer-consumer like pattern. It simply tells a > generic ThreadLimiter to spawn a new thread. Within this > thread, a new process is spawned. The number of concurrent > threads, and thus the number of concurrent processes, is > controlled by ThreadLimiter. > > We might learn from both implementations. this is precisely how forkoff manages the number of processes, only it's via Queues and a fixed number of threads consuming from those queues the latest impl from svn: http://p.ramaze.net/1141 regards. a @ http://codeforpeople.com/ -- we can deny everything, except that we have the possibility of being better. simply reflect on that. h.h. the 14th dalai lama