Which of the following is true about scheduler?
![Which of the following is true about scheduler?](/img/relate-questions.png)
A. The job scheduler selects from among the processes that are ready to execute and allocates the CPU to one of them.
B. The short-term scheduler loads selected processes into memory for execution.
C. The long-term scheduler executes much less frequently.
D. All of the above
Please scroll down to see the correct answer and solution guide.
Right Answer is: C
SOLUTION
-
False: The processes are spooled to a mass-storage device such as a disk, where they are kept for later execution. The long-term scheduler, or job scheduler, select processes from this pool and loads them into memory for execution.
-
False: The short-term scheduler, or CPU scheduler, selects from among the processes that are ready to execute and allocates the CPU to one of them.
-
True: The long-term scheduler may need to be invoked only when a process leaves the system. Because of the longer interval between executions, the long-term scheduler can afford to take more time to decide which process should be selected for execution.