|
From: lars b. <la...@no...> - 2000-03-14 19:22:01
|
Jeff Dike <jd...@ka...> writes:
> > and the idle thread tends to soak up a lot of CPU time
> It busy-waits, just like any normal idle thread. I'm planning on using the
> kernel's APM support to turn the busy-waiting into sleeping. This will make
> uml put a lower load on the system.
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.
|