AfterAcademy Tech
•
11 Nov 2019

In the Operating System, a Process is something that is currently under execution. So, an active program can be called a Process. For example, when you want to search something on web then you start a browser. So, this can be process. Another example of process can be starting your music player to listen to some cool music of your choice.
A Process has various attributes associated with it. Some of the attributes of a Process are:
During the execution of a process, it undergoes a number of states. So, in this section of the blog, we will learn various states of a process during its lifecycle.
The following image will show the flow of a process from the new state to the terminated state.

In the above image, you can see that when a process is created then it goes into the new state. After the new state, it goes into the ready state. If the ready queue is full, then the process will be shifted to the ready suspended state. From the ready sate, the CPU will choose the process and the process will be executed by the CPU and will be in the running state. During the execution of the process, the process may need some I/O operation to perform. So, it has to go into the waiting state and if the waiting state is full then it will be sent to the waiting suspended state. From the waiting state, the process can go to the ready state after performing I/O operations. From the waiting suspended state, the process can go to waiting or ready suspended state. At last, after the complete execution of the process, the process will go to the terminated state and the information of the process will be deleted.
This is the whole life cycle of a process.
That's it for this blog. Hope you learned something new today.
Do share this blog with your friends to spread the knowledge. Visit our YouTube channel for more content. You can read more blogs from here.
Keep Learning 🙂
Team AfterAcademy!
AfterAcademy Tech
In this blog, we will learn what an Operating System is and what are the goals of an Operating System. We will also learn the functionalities of an Operating System that helps in achieving the goal of the OS.

AfterAcademy Tech
In this blog, we will learn about Process Synchronization in Operating System. Process Synchronization is used to deal with critical section problem.

AfterAcademy Tech
In this blog, we will learn about the difference between Mutex and Semaphore in the Operating System. We will first learn about Mutex and Semaphore and after that, we will find the difference between them.

AfterAcademy Tech
In this blog, we will learn about various process scheduling algorithms used in Operating System. We will learn about FCFS, SJF, SRTF, Round-Robin, Priority-based, Highest Response Ratio Next, Multilevel Queue, and Multilevel Feedback Queue scheduling.
