Mark Volkmann wrote:

> I've search for documentation about whether Ruby thread scheduling
> uses FIFO or round-robin and can't find anything. It seems to be
> round-robin. Is that correct?

all threads being equal, it's round robin.

the thread scheduler is called rb_thread_schedule in the eval.c file.



> Is there a way to control the time slice used for each thread running
> at the same priority?

you would have to change the hard-coded time (integer) values
in the eval.c file and recompile ruby.


> --
> R. Mark Volkmann
> Partner, Object Computing, Inc.