- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Running vs Waiting vs Terminated 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.
A process passes through different states as it executes. A diagram that illustrates all these states is as follows −
Details about the running, waiting and terminated process are given as follows −
- Running Process
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.
- Blocked Process
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.
- Terminated Process
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.
- Related Articles
- Process vs Parent Process vs Child Process
- Process Creation vs Process Termination in Operating System
- Message Passing vs Shared Memory Process communication Models
- OneDrive vs Dropbox vs Google Drive vs Box
- Virtual vs Sealed vs New vs Abstract in C#
- C++ vs Java vs Python?
- Corona vs. Phonegap vs. Titanium
- mysql_fetch_array vs mysql_fetch_assoc vs mysql_fetch_object?
- C++ vs C++0x vs C++11 vs C++98
- Zombie vs Orphan vs Daemon Processes
- Cplus plus vs Java vs Python?
- "static const" vs "#define" vs "enum" ?
- Training vs Testing vs Validation Sets
- Const vs Static vs Readonly in C#
- Tokens vs Identifiers vs Keywords in C++
