On Feb 4, 2007, at 8:55 AM, Daniel DeLorme wrote: > Interesting. I had though about db connections but hadn't followed > the reasoning through to file descriptors and other shared > resources. True this might be quite tricky and problematic but, as > khaines said, not necessarily a showstopper. It seems like you need to figure out how easily a forked child can be taught to release all of those shared handles and open its own handles. > Indeed, I imagine (hope) that the code of a .so file would be > shared between processes. But I very much doubt the same holds true > for .rb files. And I doubt that compiled modules are more than a > small fraction of the code. The .rb files are just disk files - they probably only reside in memory briefly, when they're initially parsed. What you're executing is the binary ruby interpreter, running the parse tree generated from those .rb files. Tom