On Jan 16, 7:23 am, Jason Roelofs <jameskil... / gmail.com> wrote:
> [Note:  parts of this message were removed to make it a legal post.]
>
> On Jan 16, 2008 6:12 AM, Charles Oliver Nutter <charles.nut... / sun.com>
> wrote:
>
>
>
> > Rick Penn wrote:
> > > Is there anyway possible, one can make use of native threads in Ruby?
> > > Maybe by interfacing with C or Java?
>
> > JRuby supports native threads today, where each Ruby thread maps to one
> > native thread. There's also a second option, native thread pooling,
> > where the number of native threads used is only ever as high as the
> > number of threads running concurrently.
>
> > Normal native thread support is the default. Pooling can be enabled with
> > a command-line option:
>
> > -J-Djruby.thread.pooling=true
>
> > - Charlie
>
> --enable-threading will put 1.8.6 in native thread mode, but it is unadvised
> to do so. Ruby 1.9 does uses native threads as well as a construct called
> Fibers, which I think are a better implementation of 1.8.6's green threads.
>
> Jason

I believe that while 1.9 does support native threads, their benefit is
minimal as there is a global interpreter lock most of the time.  Is
that correct?