574 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?

2 Answers

Best answer
1 votes
1 votes

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
0 votes
0 votes
When a process in the CPU asks for I/O, there is a special scheduler called the I/O Scheduler that takes care of managing the communication between the CPU and the I/O devices. The I/O Scheduler handles the I/O request and makes sure that the CPU is not left idle while waiting for the I/O operation to complete. It may decide to suspend the current process and choose another process from the ready queue to execute on the CPU, ensuring efficient utilization of system resources.

Related questions

1 votes
1 votes
2 answers
2
makhdoom ghaya asked Aug 30, 2016
655 views
A special software that is used to create a job queue is calledDriveSpoolerInterpreterLinkage editor
0 votes
0 votes
1 answer
3
Shivateja MST asked Jul 13, 2023
183 views
Like other allocation techniques, does Overlaying technique uses MMU? And how address translation takes place and security is maintained in Overlaying ?