[Backgroundrb-devel] MiddleMan.worker blocks?
masonhale at gmail.com
Wed Mar 7 17:01:33 EST 2007
On 3/7/07, Ezra Zygmuntowicz <ezmobius at gmail.com> wrote:
> > That "sleep 0.0001" works at all is weird, and I'd be hesitant to
> > rely on it continuing to work.
> Actually the sleep makes sense. It would seem that your code is
> blocking the thread which makes all the other threads block. Putting
> a sleep in there gives the scheduler time to schedule the other
> threads to be run.
Yeah, I'd buy that.
Would also explain 'sleep 0' working.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Backgroundrb-devel