A process is like a task that a computer is executing. It may be in different states depending on what it is doing. The following are the main process states: New :Process has just been created. Ready: Process is ready to run but waiting for CPU to get free. Running: Process is being executed by CPURead more
A process is like a task that a computer is executing. It may be in different states depending on what it is doing. The following are the main process states:
New :Process has just been created.
Ready: Process is ready to run but waiting for CPU to get free.
Running: Process is being executed by CPU now.
Waiting: Process waits for some event (for example, waiting for user input or for a file to be read).
Terminated: This means that the process has completed execution and has died.From New to Ready: Here, we have set our process up and it’s ready to execute.
From Ready to Running: While running, the CPU chooses this process of all other processes that are available at that time
From Running to Waiting: In order for the processor or any of its resources not to go idle when running the program, it should pause until an event occurs such as an input clause
From Waiting to Ready: The state which follows after waiting can only happen if some events occur otherwise it will remain constant.
From Running to Terminated: The task has been accomplished by this process
See less
New: Description: The process is being created. In this state, the operating system is setting up the process control block (PCB), memory allocation, and other necessary resources. Example: When you start a new application, it begins in the new state while the OS sets up its environment. ReadRead more