From: Jeff D. <jd...@ka...> - 2000-03-14 22:37:35
|
la...@no... said: > In Linux/a386, I just replaced the asm("hlt") with > a386_interrupt_wait(), which sleeps until woken up by a signal or > until the next timer interrupt (aka SIGTVALRM) would have occurred. That's more or less what I'm planning. What complicates things is I'd have to have the input thread start delivering signals to sleeping idle threads when there's some input to handle, and that's racy. This will be especially handy with MP emulation. Currently, you'll have 2 or 4 (or whatever) idle threads all spinning when they have nothing to do. Jeff |