Re: Does sleep() system call cause the scheduler to be rerun?
From: Cameron Simpson (cs_at_zip.com.au)
Date: 10/03/03
- Previous message: Anthony E. Greene: "Re: Printing from console"
- In reply to: Srini Amble: "Does sleep() system call cause the scheduler to be rerun?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: redhat-list@redhat.com Date: Fri, 3 Oct 2003 15:32:33 +1000
On 19:47 02 Oct 2003, Srini Amble <samble@xopworks.com> 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@zip.com.au> 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@redhat.com?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list
- Previous message: Anthony E. Greene: "Re: Printing from console"
- In reply to: Srini Amble: "Does sleep() system call cause the scheduler to be rerun?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|