Reading Ruby Multithreading / Multiprocessing

Can anyone recommend any good multithreaded / processing books / websites that detail the intricacies of Ruby's multithreading / multiprocessing?

I tried using ruby ​​thread and, basically, in the lawless 1.9vm code, it ran into dead ends in jruby. Yes, I understand that the differences are strong (jruby does not have GIL), but I wanted to know if there are strategies or a set of classes for multi-threaded ruby ​​programming that I just need to read.

Side note: it was strange that I switched from java to ruby ​​to determine if I want to re-enter the lock against no.

+5
source share
2 answers

If you are using Ruby 1.9, you can try Fiber, a big improvement in streaming processing in Ruby.

http://ruby-doc.org/core-1.9/classes/Fiber.html

http://www.infoq.com/news/2007/08/ruby-1-9-fibers

+1
source

Surprisingly, dRuby has a chapter on DRb multithreading that addresses some basic aspects of Ruby Multithreading. It was written by the same person who wrote dRuby / ERB, and it looks pretty good.

0
source

All Articles