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: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>