Process Management in Operating System

A process is a program in execution. Whenever a process executes, it passes through various states. However, these states may differ for different operating systems, but generally, at a time, it can have any one of the following five states:

๐—ฆ๐˜๐—ฎ๐—ฟ๐˜: The initial state when a process has just started.
๐—ฅ๐—ฒ๐—ฎ๐—ฑ๐˜†: The process comes in this state after the start state and is waiting here to get the CPU time for its execution.
๐—ฅ๐˜‚๐—ป๐—ป๐—ถ๐—ป๐—ด: In this state, the process has been assigned to a processor, and the processor executes its instructions.
๐—ช๐—ฎ๐—ถ๐˜๐—ถ๐—ป๐—ด: Whenever a process required user input or other resources, it moves into the waiting state. Once the desired operation is completed, the process goes to read state.
๐—ง๐—ฒ๐—ฟ๐—บ๐—ถ๐—ป๐—ฎ๐˜๐—ฒ๐—ฑ: Once the process finishes its execution, it is moved to the terminated state, where it waits to be removed from the main memory.

Similar Blogs

Enjoy Problem Solving

Subscribe to get free weekly content on DSA, Machine Learning and System Design. Content will be delivered every Monday.

ยฉ 2020 EnjoyAlgorithms, Inc. All rights reserved.