From: Eric Wong Date: 2018-05-10T20:06:32+00:00 Subject: [ruby-core:86972] Re: [Ruby trunk Feature#13618] [PATCH] auto fiber schedule for rb_wait_for_single_fd and rb_waitpid samuel@oriontransfer.net wrote: > > Again, Mio (Glasgow Haskell Compiler) is most similar to what > > I'm working on, here, and that scales to some ridiculous number > > of cores > > Thanks for that I will read it. Fwiw, I've been citing Mio since before this feature was implemented... > I will assume you've implemented something similar, but I have > a question, when processing events, when handling events that > don't belong to the current thread, you put them in a queue. > How does the other thread know to wake up? It enqueues an interrupt for the target thread, same thing as "normal" thread switching. Ruby uses a 100ms timeslice with pthreads. Unsubscribe: