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

From: Srini Amble (samble_at_xopworks.com)
Date: 10/03/03

  • Next message: Phil Savoie: "Re: PCMCIA NIC with the knack, anyone?"
    To: redhat-list@redhat.com
    Date: Thu, 02 Oct 2003 19:47:49 -0500
    
    

    Does sleep() system call cause the process to be put on the wait queue?
    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.

    Thanks in advance

    Srini

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

  • Next message: Phil Savoie: "Re: PCMCIA NIC with the knack, anyone?"

    Relevant Pages

    • Re: Code executing too fast -- causes errors
      ... is also a queue of messages waiting to be processed. ... As you say, sleep suspends execution for a given duration, then resumes ... The key difference between the two approaches is that DoEvents will permit ... Private Sub CommandButton1_Click ...
      (microsoft.public.word.vba.beginners)
    • plz read my paper on wait queues and give me feedback
      ... The desired behavior is to put the process to sleep and wake ... Each entry on the queue describes some process that is sleeping ... Here is how to use the macros: ...
      (comp.os.linux.development.system)
    • Re: How to wait for multiple threads simultaneously?
      ... A 'condition variable' is the userland-equivalent of a sleep channel ... wait queue to be not worth the effort. ... It simply requires that the lock function not ... because a 'POSIX spin lock' would not ...
      (comp.os.linux.development.apps)
    • Re: MessageBox.Show and program behaviour
      ... Your code is just an infinite loop where you fill your APListView, ... sleep then fill your APListView again, ... messages in its message queue. ... message queue messages and to paint your APListView. ...
      (microsoft.public.dotnet.languages.csharp)
    • Re: Code executing too fast -- causes errors
      ... Sleep, as far as I can see, does not send the thread to sleep, but rather ... is it somehow queue jumping over the threads waiting in ... The key difference between the two approaches is that DoEvents will ... Private Sub CommandButton1_Click ...
      (microsoft.public.word.vba.beginners)