From: ts Date: 2002-05-31T22:34:27+09:00 Subject: Re: Threading question >>>>> "M" == Morris, Chris writes: M> I guess I'm still unclear on my original question then. Does Ruby's M> threading granularity go down below a single line of script? If I write my M> own C extension that packages a lot of C code in a single Ruby call, can M> this C method be interrupted by another Ruby thread? In a C extension, you must *explicitely* call the thread scheduler if you *never* make a call to a ruby method, otherwise all others threads are blocked. Now if your C code use a ruby method, this method can (or can't) call the ruby scheduler. Guy Decoux