[Backgroundrb-devel] Ruby threads?
ezmobius at gmail.com
Tue Jun 6 21:41:50 EDT 2006
On Jun 6, 2006, at 6:08 PM, Chih-Chao Lam wrote:
> First off, Ezra, thank you for putting out BackgrounDrb. Looks like
> a very useful framework.
> I have a newbie question about ruby threads. Are there any general
> things to avoid doing when using ruby threads and rails?
> Also specifically, will using BackgrounDrb avoid the socket problem
> described in this link (extracted from Rails wiki):
> I'm hoping it will because, presumably, BackgrounDrb runs in a
> separate process from the actual rails web app?
> chao lam
> Backgroundrb-devel mailing list
> Backgroundrb-devel at rubyforge.org
You're welcome, thanks for the kind words! And you are correct, your
worker classes run in a separate ruby interpreter in its own separate
process. But currently all your workers run in threads in the same
process so you have to be mindful. I think you should be fine doing
what you want with sockets. And if you end up running into issues, I
am working on an addition that will allow your workers to spawn their
own slave child processes. So stay tuned. And post back here if you
run into any issues.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Backgroundrb-devel