The misconception on Ruby threads
Dax Huiberts ma 16 aug 10
Yehuda Katz talks about the misconception of Ruby threads and that they are not as bad as they seem.
This misconception is partly based on the fact that a multithreaded Rails app is not comparable to a higly concurrent application which most Ruby thread tests are based on.
The other part is that most problems date back to old Rails versions, old mongrel versions and the old mysql gem, which did not supply the required environment for correctly working threads in a Rails application.
The only ‘problem’ left remaining is that Ruby 1.9’s YARV VM doesn’t allow a Ruby process to run simultaneously on multiple cores, thus requiring one process per CPU core. This is not the case with JRuby and work is underway for Rubinius to use only one process for all CPU cores.
Read Yehuda’s article on Ruby threads for a extended overview of this information.
Gepost in hor | 0 reacties
Welcome to Holland On Rails
This weblog is the official Ruby techblog from the guys at Holder, a Ruby development company. Holder is also the company behind the RubyAndRails Europe Conference in Amsterdam.Recente Jobs
Bekijk alle jobs »»
Gereedschapskist
Onmisbare tools vooriedere developer!
- Ruby On Rails
Framework voor de web 2.0 developer. Eindelijk vooruitgang! - TextMate
Editor for true pro's
Typ, tab, top :-)
Nee, niet voor Win. - Made On A Mac
En nou is het over met die saaie grijze Windows bak van je!
Auteurs op deze site
Chris Obdam
'Less is more' evangelist, past dit ook dagelijks toe op zijn tandenborstel.Chiel Wester
Snelheidswonder op Ruby wielen. Leuk om mee te pair-programmen ;-)
Plaats je reactie