What practical effect will different Ruby threading models (Ruby vs JRuby) have on your code as a developer?

后端 未结 3 713
傲寒
傲寒 2021-01-05 06:24

I\'m trying to understand the practical impact of different threading models between MRI Ruby 1.8 and JRuby.

What does this difference mean to me as a developer?

3条回答
  •  长发绾君心
    2021-01-05 07:16

    I am a regular JRuby user and the biggest difference is that JRuby threads are truly concurrent. They are actually system level threads so they can be executed concurrently on multiple cores. I do not know of any place where MRI Ruby 1.8 code runs slower on JRuby. You might consider checking out this question Does ruby have real multithreading?.

提交回复
热议问题