From: Tony Arcieri Date: 2013-03-13T09:22:30+09:00 Subject: Re: Ruby 2.0 Thread multitasking? --bcaec51ddd49b196a204d7c366bc Content-Type: text/plain; charset=ISO-8859-1 On Tue, Mar 12, 2013 at 5:09 PM, Charles Hixson wrote: > Does Ruby 2.0 run more than one thread at a time? The documentation I > have says that Ruby 1.9 does not. You're talking about the Global Interpreter Lock or GIL (also known as the Global VM Lock, or GVL) The answer is no, Ruby 2.0 does not remove the GIL, and there are not plans to remove it at this time. Note that this lock does not preclude you from carrying out I/O-related tasks in parallel. It only limits multicore operation (i.e. multiple cores running Ruby code) That said, JRuby, Rubinius, and other Ruby VMs provide true thread-level parallelism via GIL-free operation and are "multicore-aware" -- Tony Arcieri --bcaec51ddd49b196a204d7c366bc Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
On Tue, Mar 12, 2013 at 5:09 PM, Charles Hixson <lists@ruby-forum.com> wro= te:
Does Ruby 2.0 run more than one thread at a time? =A0The document= ation I
have says that Ruby 1.9 does not.

You're talking about the Global Interpreter Lock or GIL (= also known as the Global VM Lock, or GVL)

The answer is no, Ruby 2.0 does not re= move the GIL, and there are not plans to remove it at this time. Note that = this lock does not preclude you from carrying out I/O-related tasks in para= llel. It only limits multicore operation (i.e. multiple cores running Ruby = code)

That said, = JRuby, Rubinius, and other Ruby VMs provide true thread-level parallelism v= ia GIL-free operation and are "multicore-aware"
=

--
Tony Arcieri
--bcaec51ddd49b196a204d7c366bc--