ISRO Scientist/Engineer CSE 2023Operating Systems › Process Scheduling
ISRO Scientist/Engineer CSE 2023 PYQ: Process Scheduler Type Activity (i) Long Term Scheduler (P) executes much faster to reduce wastage of CPU…
| Process Scheduler Type | Activity | ||
| (i) | Long Term Scheduler | (P) | executes much faster to reduce wastage of CPU time |
| (ii) | Medium term scheduler | (Q) | controls degree of multi programming |
| (iii) | Short Term scheduler | (R) | is associated with swapping |
with respect to Process Schedulers of an operating system mentioned above in the table, which of the following statements is correct?
- A(i) – (R), (ii) – (P), (iii) – (Q)
- B(i) – (Q), (ii) – (R), (iii) – (P)Correct answer
- C(i) – (P), (ii) – (R), (iii) – (Q)
- D(i) – (R), (ii) – (Q), (iii) – (P)
Answer
(B) (i) – (Q), (ii) – (R), (iii) – (P)
Approach
The correct matching is based on the standard functions of the three process schedulers in an operating system. The Long-Term Scheduler, also called the job scheduler, decides which jobs or processes are admitted into the ready queue and loaded into main memory. By controlling how many processes are in memory at once, it directly controls the degree of multiprogramming. Therefore, (i) Long Term Scheduler matches with (Q) controls degree of multi programming. The Medium-Term Scheduler is responsible for swapping processes between main memory and secondary storage, often to reduce memory pressure or improve process mix. Hence, (ii) Medium term scheduler matches with (R) is associated with swapping. The Short-Term Scheduler, also called the CPU scheduler, selects one of the ready processes and allocates the CPU to it. Since it runs very frequently, it must execute much faster than the other schedulers; otherwise the CPU would sit idle while scheduling decisions are being made, wasting CPU time. Thus, (iii) Short Term scheduler matches with (P) executes much faster to reduce wastage of CPU time. Combining these gives (i)-(Q), (ii)-(R), (iii)-(P), which is exactly option B. The other options misplace at least one activity: for example, option A assigns swapping to the long-term scheduler and fast execution to the medium-term scheduler; option C assigns fast execution to the long-term scheduler and degree of multiprogramming to the short-term scheduler; option D assigns swapping to the long-term scheduler and degree of multiprogramming to the medium-term scheduler. None of those align with the conventional OS definitions. Therefore option B is definitively correct.
Reviewed by ISRO IQ Editorial Team.