Quantcast
Channel: Does ruby have real multithreading? - Stack Overflow
Browsing latest articles
Browse All 10 View Live

Answer by zw963 for Does ruby have real multithreading?

Because could not edit that answer, so add a new reply here.Update(2017-05-08)This article is very old, and information is not follow current(2017) tread, Following is some supplement:Opal is a Ruby to...

View Article



Image may be NSFW.
Clik here to view.

Answer by GroovyCakes for Does ruby have real multithreading?

I'll let the "System Monitor" answer this question. I'm executing the same code (below, which calculates prime numbers) with 8 Ruby threads running on an i7 (4 hyperthreaded-core) machine in both...

View Article

Answer by user454322 for Does ruby have real multithreading?

It depends on the implementation: MRI doesn't have, YARV is closer.JRuby and MacRuby have.Ruby has closures as Blocks, lambdas and Procs. To take full advantage of closures and multiple cores in JRuby,...

View Article

Answer by Joe Stein for Does ruby have real multithreading?

Here is some info on Rinda which is Ruby implementation of Linda (parallel processing and distributed computing paradigm) http://charmalloc.blogspot.com/2009/12/linda-tuples-rinda-drb-parallel.html

View Article

Answer by Jörg W Mittag for Does ruby have real multithreading?

Updated with Jörg's Sept 2011 commentYou seem to be confusing two very different things here: theRuby Programming Language and the specific threading model of onespecific implementation of the Ruby...

View Article


Answer by Pascal for Does ruby have real multithreading?

If you really need parallelism in Ruby for a Production level system (where you cannot employ a beta) processes are probably a better alternative. But, it is most definitely worth trying threads under...

View Article

Answer by domgblackwell for Does ruby have real multithreading?

If you are using MRI, then you can write the threaded code in C either as an extension or using the ruby-inline gem.

View Article

Answer by ujh for Does ruby have real multithreading?

How about using drb? It's not real multi-threading but communication between several processes, but you can use it now in 1.8 and it's fairly low friction.

View Article


Answer by Josh Moore for Does ruby have real multithreading?

Ruby 1.8 only has green threads, there is no way to create a real "OS-level" thread. But, ruby 1.9 will have a new feature called fibers, which will allow you to create actual OS-level threads....

View Article


Does ruby have real multithreading?

I know about the "cooperative" threading of ruby using green threads. How can I create real "OS-level" threads in my application in order to make use of multiple cpu cores for processing?

View Article
Browsing latest articles
Browse All 10 View Live




Latest Images