Re: Possible spin-problem in nanosleep()

From: Robert Hancock
Date: Thu Jun 23 2005 - 18:46:09 EST


Richard B. Johnson wrote:
Is this a known problem? Is it going to be fixed? In a possibly
related note, the following:

main()
{
for(;;)
sched_yield();
}

.... is shown to be spinning, by 'top' not sleeping. This, even though
it is giving up its quantum continuously.

If no other processes are runnable, this will still use 100% of the CPU.

--
Robert Hancock Saskatoon, SK, Canada
To email, remove "nospam" from hancockr@xxxxxxxxxxxxx
Home Page: http://www.roberthancock.com/

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/