- Trending Categories
- Data Structure
- Operating System
- C Programming
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
What are the different states of a Process?
A process is an active program. It can also be said as a program that is under execution. It is more than the program code as it includes the program counter, process stack, registers, program code etc. Compared to this, the program code is only the text section.
A process passes through different states as it executes. These states may be different in different operating systems. However, the common process states are explained below with the help of a diagram −
This is the state when the process has just been created. It is the initial state in the process life cycle.
In the ready state, the process is waiting to be assigned the processor by the short term scheduler, so it can run. This state is immediately after the new state for the process.
The processes in ready suspended state are in secondary memory. They were initially in the ready state in main memory but lack of memory forced them to be suspended and gets placed in the secondary memory.
The process is said to be in running state when the process instructions are being executed by the processor. This is done once the process is assigned to the processor using the short-term scheduler.
The process is in blocked state if it is waiting for some event to occur. This event may be I/O as the I/O events are executed in the main memory and don't require the processor. After the event is complete, the process again goes to ready state.
This is similar to ready suspended. The processes in blocked suspended state are in secondary memory. They were initially in the blocked state in main memory waiting for some event but lack of memory forced them to be suspended and gets placed in the secondary memory. A process may go from blocked suspended to ready suspended if its work is done.
The process is terminated once it finishes its execution. In the terminated state, the process is removed from main memory and its process control block is also deleted.
- What are the different types of process states and queues?
- What are process states?
- What are the process states in Windows and Linux?
- What are the five process states in the Linux kernel ?
- What are the different status states of REPL in Java 9?
- What are the states of transaction in DBMS?
- What is the relationship between process states and the machine cycle?
- Styling different states of a link using CSS
- What are the Different Phases of a Compiler?
- Different Types of Process Schedulers
- What are the operations on process?
- What are the different shapes of galaxies?
- What are the different types of psychotherapy?
- What are the different types of DBMS?
- What are the different branches of accounting?