yep, that's pretty much the situation with m-n threading in Jikes RVM. For the blocking operations, we need to replace the entire call with something else. There might be some cases where the callbacks could be useful, but they wouldn't be a complete solution for us. --dave Guilhem Lavaux <guilhem@xxxxxxxxx> wrote on 02/02/2006 01:27:28 PM: > > Though enter/exit callbacks may help for a few syscalls but it won't for > some (like blocking read/write). For these new calls you need handle > blocking queues in the VM thread scheduler. That needs to put the fd > into non-blocking mode and when you do a read you first check if there > is any data (in non-blocking mode) and if there is not data then the > thread system queues the current thread and tells the scheduler to jump > somewhere else until some datas are available on the specified fd. So we > must really stick to rerouting a few IOs. I am sure that handling m-to-n > threading system is as difficult as what we are doing (maybe more).