From: Tony Arcieri Date: 2011-10-18T05:12:28+09:00 Subject: Re: Ruby and threading --000e0cd22e647f8a0a04af843471 Content-Type: text/plain; charset=ISO-8859-1 On Mon, Oct 17, 2011 at 1:02 PM, Alexey Petrushin wrote: > Maybe it's a stupid question, but I can't get it - what's the point of > using OS threads with GIL? > > You'll anyway never get situation where two thread runs simultaneously, > so, what's the point of it? Threads can still run simultaneously, they just can't make changes to Ruby objects or the Ruby environment. A native extension can release the GIL and do blocking I/O or perform a complex computation (e.g. crypto) while Ruby code is running in another thread. -- Tony Arcieri --000e0cd22e647f8a0a04af843471--