Home » Operating Systems

Enhanced Process State Diagram in Operating System

In this article, we will study the enhanced process state diagram. We will study about how it is different from the normal Process state diagram and will study its surplus parts in detail.
Submitted by Monika Sharma, on June 27, 2019

The enhanced process state diagram was introduced for maintaining the degree of multiprogramming by the Operating System. The degree of multiprogramming is the maximum number of processes that can be handled by the main memory at a particular instance. It is maintained by the Mid Term Schedulers. Let us first have a look at the diagram and will then talk about the working of the Mid Term Schedulers.

Enhanced process state diagram

The dotted box represents the Main memory of the system, which consists of the Ready state, the Running state, and the Waiting state. The degree of multiprogramming remains constant for a system. As soon as the number of processes in the ready state or the waiting state exceeds the degree of multiprogramming level, then the Mid Term Scheduler starts transferring the processes to the suspended ready state and to the suspended wait state respectively. As soon as the processes residing in the main memory complete their execution and goes into the termination state, the Mid Term Schedulers again transfers them into their respective states in the main memory.

The entire remaining processing inside the main memory is the same as in the normal Process State Diagram. The difference between the two is only that in the enhanced Process state diagram, the degree of multiprogramming is maintained by the Mid Term Schedulers by which, the flooding of processes into the main memory is eliminated, and this increases the processing speed and the performance of the system.

Here, in the enhanced Process state diagram also, the concept of preemption and non-preemption is applicable. If the Operating system allows preemption, then the switching of the process from the running state to ready state directly is allowed. Else, it is restricted if the Operating System follows the no-preemption mode of process scheduling.






Comments and Discussions

Ad: Are you a blogger? Join our Blogging forum.





Languages: » C » C++ » C++ STL » Java » Data Structure » C#.Net » Android » Kotlin » SQL
Web Technologies: » PHP » Python » JavaScript » CSS » Ajax » Node.js » Web programming/HTML
Solved programs: » C » C++ » DS » Java » C#
Aptitude que. & ans.: » C » C++ » Java » DBMS
Interview que. & ans.: » C » Embedded C » Java » SEO » HR
CS Subjects: » CS Basics » O.S. » Networks » DBMS » Embedded Systems » Cloud Computing
» Machine learning » CS Organizations » Linux » DOS
More: » Articles » Puzzles » News/Updates


© https://www.includehelp.com some rights reserved.