What Are Sleeping Processes in Linux?
Contents Sleeping: a Sleeping Process Is a Process Waiting for a Resource to Be Available (For Example, a I/O Operation to Complete) or an Event to Happen...
Sleeping: a sleeping process is a process waiting for a resource to be available (for example, a I/O operation to complete) or an event to happen (like a certain amount of time to pass).
How do I see sleep processes in Linux?
Just grep -l sleeping /proc/[0-9]*/status and maybe pipe it via | xargs -n1 dirname | xargs -n1 basename or something like that. Looping and checking return value and echo will be very slow. Using { } instead of do done is discouraged – it’s a (strange) bash extension, just do done .
Must Read
What is sleeping in top command?
The status of any process can be: Ready: when it ready for execution and it’s in the queue waiting the processor call with specific priority. Sleeping: When it was running and it was blocked for I/O operation or when executing sleep() Running: When the processor executes a process it becomes running.