Simple Ruby-Thread question

Will ruby threads migrate to other CPUs than one under Linux (or other OSs)?

J S wrote:

Will ruby threads migrate to other CPUs than one under Linux (or other OSs)?

Nope. Ruby threads all live in the same native thread, and therefore can
only use a single CPU, even if there are multiple CPUs available.

J S wrote:

Will ruby threads migrate to other CPUs than one under Linux (or other
OSs)?

Nope. Ruby threads all live in the same native thread, and therefore can
only use a single CPU, even if there are multiple CPUs available.

Ok. Thats “bad”. Is this about to change in any near future versions?

I understand that ruby is not for enterprise scale applications but some
kind of SMP-scaling should be available exept for forking (?).

Wait for 2.0

···

J S (lists@netrogenic.com) wrote:

J S wrote:

Will ruby threads migrate to other CPUs than one under Linux (or other
OSs)?

Nope. Ruby threads all live in the same native thread, and therefore can
only use a single CPU, even if there are multiple CPUs available.

Ok. Thats “bad”. Is this about to change in any near future versions?

I understand that ruby is not for enterprise scale applications but some
kind of SMP-scaling should be available exept for forking (?).


Eric Hodel - drbrain@segment7.net - http://segment7.net
All messages signed with fingerprint:
FEC2 57F1 D465 EB15 5D6E 7C11 332A 551C 796C 9F04