Contents
What conditions put process in sleep state?
A process enters a Sleeping state when it needs resources that are not currently available. At that point, it either goes voluntarily into Sleep state or the kernel puts it into Sleep state. Going into Sleep state means the process immediately gives up its access to the CPU.
What is disk sleep state?
While waiting for read() or write() to/from a file descriptor return, the process will be put in a special kind of sleep, known as “D” or “Disk Sleep”. This is special, because the process can not be killed or interrupted while in such a state.
How processes are created and terminated?
Till now we know that whenever we execute a program then a process is created and would be terminated after the completion of the execution. The newly created process is called the child process and the process that initiated it (or the process when execution is started) is called the parent process.
What happens to your brain when you don’t get enough sleep?
Sleep deprivation leaves your brain exhausted, so it can’t perform its duties as well. You may also find it more difficult to concentrate or learn new things. The signals your body sends may also be delayed, decreasing your coordination and increasing your risk for accidents.
What does it mean when a process is in uninterruptible sleep?
Processes in a “D” or uninterruptible sleep state are usually waiting on I/O. The ps command shows a “D” on processes in an uninterruptible sleep state. The vmstat command also shows the current processes that are “blocked” or waiting on I/O.
What causes people to go into deep sleep?
Heart disease and thyroid disorders can cause increased and deeper sleep too. Depression and Deep Sleep While some people with depression experience sleep disturbances to where they can’t have a restful night’s sleep, others experience deeper sleep while depressed.
What does the ” Interruptible sleep ” state indicate?
It was already in state S before. “Interruptible sleep” effectively means idle. The process is waiting, and will wake up when it receives an input. That’s the normal state of a process unless you catch it while it’s busy. You have made the window disappear.
Are there any sleep disorders that disturb deep sleep?
There are certain sleep disorders that may disturb deep sleep. Sleep apnea and periodic limb movements of sleep (PLMS) cause recurrent awakenings. These disruptions may reduce deep sleep. Effective treatment may cause a rebound of deep sleep and further normalization of the balance of sleep stages over time.