>>>>> "Y" == Yukihiro Matsumoto <matz / ruby-lang.org> writes:

Y> I thought context switch would not happen during restore_context,
Y> because rb_trap_immediate is turned off.  Am I wrong?

 ruby has a new thread thread_timer() where it can call nanosleep() when
 rb_thread_critical is set and it has catch_timer()


Guy Decoux