Skip to main content

Process State Transition Diagram

 

            


New - In this state, It is a program it is pick by operating system. It is in the Secondary memory it will                  put  in main memory.

Ready- Here processor is ready to run.

Running- After Ready state it Schedule / Dispatch to the Running state. In this State CPU allocate

                 memory to the processor.

Terminated- When processor is completed then it will go to terminated.

Waiting / Blocked - When processor is running if it requires any I/O devices then it will go on to                                            waiting/ Blocked  state.

Suspend Ready- When any high priority processor want to get into ready state but there is no enough                                  space in the ready state then the low priority processor will go to Suspended ready                                  state. i.e. Here Processor in ready state which is in Main memory go back to                                             Secondary state. 

Non- preemption

There is more way when the processor is running if it want to be removed we will use time quantum or priority and make the processor to go back to ready state.

Suspend wait state

Here the processor is in waiting state if the space size is full then it will get into Secondary memory . In Secondary memory the I/O devices complete it task and get Suspended ready state.

Various Schedulers

Long term Scheduler

  It occurs in New state to ready state. Here It will choose want I/O bound and CPU bound Schedulers. It  will device the degree of multi-programming . In degree of multi-programming it will decide maximum no. of  processors in the Ready state at one time.


Short term Scheduler

It occurs between Ready state to Running state. The Dispatcher will pick the processor from ready state and allocate the memory then it will go to running state. It will go under CPU bound processing.

Medium term Scheduler

It will make processor to go secondary memory and again it will send back to main memory it will work in states like suspend wait and suspend ready.

Frequency of Scheduler

         Short term Scheduler >  Medium term Scheduler > Long term Scheduler


           

Popular posts from this blog

Operating System

What is an operating system? An operating system (OS) is the program that, after being initially loaded into the computer by a boot program, manages all of the other application programs in a computer. The application programs make use of the operating system by making requests for services through a defined application program interface ( API ). In addition, users can interact directly with the operating system through a user interface, such as a command-line interface (CLI) or a graphical UI (GUI). Why use an operating system? An operating system brings powerful benefits to computer software and software development. Without an operating system, every application would need to include its own UI, as well as the comprehensive code needed to handle all low-level functionality of the underlying computer, such as disk storage, network interfaces and so on. Considering the vast array of underlying hardware available, this would vastly bloat the size of every application and make software