1

Why the process of sleep command is always in sleep status ? Sleep status means waiting for I/O right ?

2
  • sleep status could be waiting for anything – Skaperen Apr 15 '15 at 11:57
  • It is my understanding that while a thread may sleep while a DMA request is pending, there are other reasons for a process to go into a sleep state. – Frank Thomas Apr 15 '15 at 11:58
1

It would be misleading if a call to to the sleep (or associated) function were to report a process state other than sleep. The sleep command calls the sleep (or associated, such as nanosleep) function, and as such, is in the same state as any other sleeping process.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.