lkml.org 
[lkml]   [1999]   [Dec]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: sleep_on, wake_up question
Dick Johnson Wote:
>If I do:
>
> for(;;)
> ;
>
>-- never returning, in an ioctl(), the box doesn't hang, it just gets
>very slow. Context switches are occurring. Or have I been using a
>SMP machine too long?

You have been using a SMP machine too long. In kernel space, Linux
only does cooperative multitasking, and the only way to switch process
contexts is through schedule or one of the functions that call schedule
such as sleep_on or the semaphore functions.

/Christer
--
"Just how much can I get away with and still go to heaven?"

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

\
 
 \ /
  Last update: 2005-03-22 13:55    [W:0.096 / U:0.064 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site