[Backgroundrb-devel] MiddleMan.worker blocks?

Mason Hale 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...
URL: http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20070307/aa10c2cc/attachment-0001.html 

More information about the Backgroundrb-devel mailing list