On Mon, Aug 16, 2010 at 8:08 AM, Samuel Thibault
<samuel.thibault@gnu.org> wrote:
Da Zheng, le Mon 16 Aug 2010 06:02:17 -0400, a écrit :
> Should we still handle the special cases in mach_msg or in another system call?
>
> While sleeping in microseconds or nanoseconds, the kernel should do the loop on
> the behalf of the user process. Why do we still need a wakeup queue?
You don't want to busy-loop for whole microseconds, but rather use a
hardware clock for that and get an interrupt when it's time to resume
the user process.
Samuel