What are the process state in Unix ?

3. Stopped State (T)

The Stopped state occurs when a process has been suspended and is not executing or ready to execute. This state is typically triggered by receiving specific signals such as SIGSTOP or SIGTSTP (usually generated by pressing Ctrl+Z in a terminal). A stopped process retains its place in the process table and preserves all its resources, but it doesn’t consume CPU time.

Processes in the Stopped state can be resumed by sending them a SIGCONT signal, which transitions them back to either the Running or Sleeping state, depending on their previous condition. This mechanism is particularly useful for job control in Unix shells, allowing users to temporarily suspend foreground processes and manage multiple tasks efficiently.

The Stopped state is different from process termination. A stopped process can be resumed and continue its execution from where it was suspended, maintaining all its state information, open files, and memory allocations.

Dlightdaily

Author is a passionate Blogger and Writer at Dlightdaily . Dlightdaily produces self researched quality and well explained content regarding HowToGuide, Technology and Management Tips&Tricks.

FacebookTwitterEmailShare

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.