Re: Does sleep() system call cause the scheduler to be rerun?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 19:47 02 Oct 2003, Srini Amble <samble@xxxxxxxxxxxx> wrote:
| Does sleep() system call cause the process to be put on the wait queue? 

Yes.

| I am hoping sleep() does not cause a spin lock. My objective being to 
| force the process to give up the CPU for some duration of time. I 
| appreciate any helpful response to resolve this question in my mind.

Sleep is what you want.
-- 
Cameron Simpson <cs@xxxxxxxxxx> DoD#743
http://www.cskk.ezoshosting.com/cs/

A slipping sear could let your M203 grenade launcher fire when you least
expect it.  That would make you quite unpopular in what's left of your unit.
        - page 9 of the August 1993 issue of PS magazine, the US Army's
          preventive maintenance magazine


-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux