in Operating System
223 views
0 votes
0 votes
Suppose we have priority-based processes. Which scheduler will replace a low priority process which is presently executing when a high priority process arrives in the ready queue?

Also which scheduler is responsible for pulling out a process from CPU if it requests I/O?
in Operating System
by
223 views

1 Answer

1 vote
1 vote
Best answer

Long term scheduler: This scheduler is responsible to move the process which are ready for processing to ready queue. It also regulates degree of multiprogramming. It is also called job scheduler.

Short term scheduler: This scheduler is responsible to move processes from ready queue to CPU and also from CPU to ready queue. It is also called CPU scheduler.

Medium term scheduler: It swaps the process from CPU to blocked state which requests for i/o. It moves the process from main memory to secondary memory so that other process which is ready to execute can be loaded to main memory. It is also called swapping scheduler.
 

selected by

4 Comments

Swapping a blocked process from the SM to MM is done by Long term or medium-term scheduler?
0
0

@tusharb medium term scheduler

1
1
The answer is pretty simple, priority based scheduling is non-preemptive so once a job is given to CPU then it has to complete execution and newly arrived job can’t be preempted ,this problem was solved by modifying priority based scheduling but in that case new problem arises termed as Starvation.
0
0

Related questions