J
jwesley
I'm an experienced developer starting to learn Ruby. On the whole I
think Ruby is a great language. My concerns are with thread safety...
1) An exception is stored in a global variable, "$!". If multiple
threads have exceptions thrown, is the the thread guaranteed to get
it's own exception (not another threads) when evaluating the "$!". (I
know there is a work around by naming the exception.)
2) Does ruby commonly use global values to pass values...which is not
thread safe (unless it's somehow "thread-local").
3) Is there any plan to use OS-level threads in Ruby 2.0? A simple
thread example I wrote was incredibly slow and I think it was because
many "slow-to-return" OS calls were being made...
thanks,
Justin
think Ruby is a great language. My concerns are with thread safety...
1) An exception is stored in a global variable, "$!". If multiple
threads have exceptions thrown, is the the thread guaranteed to get
it's own exception (not another threads) when evaluating the "$!". (I
know there is a work around by naming the exception.)
2) Does ruby commonly use global values to pass values...which is not
thread safe (unless it's somehow "thread-local").
3) Is there any plan to use OS-level threads in Ruby 2.0? A simple
thread example I wrote was incredibly slow and I think it was because
many "slow-to-return" OS calls were being made...
thanks,
Justin