Java Archive

Native thread support in Ruby's latest version

Official Ruby logo Image via Wikipedia

It looks like Ruby version 1.9.1 supports native threads and fibers. Fibers are a ‘lightweight’ approach when you don’t need full threads. It sounds like fibers are not preemptive, so they have to yield to other fibers as opposed to threads that can run in parallel. Fibers on the other hand startup faster and use less memory.

I know when Java made the leap to support native threads, it seemed like it was a huge accelerator towards greater adoption. It looks like the performance numbers are already coming in and it’s much faster.

Reblog this post [with Zemanta]