|
Answer» The different states of a process are as follows: - Created / NEW Process: A New or Created process is a program that will be loaded into the main memory by the operating system.
- READY Process: When a process is created, it immediately goes into the ready state, where it waits for the CPU to be assigned to it. The operating system selects new PROCESSES from secondary memory and places them all in the main memory. Ready state processes are processes that are ready for execution and sit in the main memory. Many processes may be active in the ready state.
- Running Process: The Operating System will choose one of the processes from the ready state based on the scheduling mechanism. As a result, if our system only has one CPU, the number of running processes at any given time will always be one. If the system has n processors, we can have n processes executing at the same time.
- Blocked or Waiting Process: Depending on the scheduling method or the INTRINSIC behaviour of the process, a process can migrate from the Running state to the Block or Wait states. When a process waits for a specific resource to be assigned or for user input, the Operating System moves it to the block or wait state and assigns the CPU to other processes.
- Terminated Process: A process enters the TERMINATION state when it has completed its execution. The process's context (Process Control Block) will be removed as well, and the process will be terminated by the operating system.
|