CS FundamentalsEasyWipro · Cognizant technical pattern
Which part of the operating system selects which process in the ready queue gets the CPU next?
- A. Short-term (CPU) scheduler
- B. Long-term (job) scheduler
- C. Medium-term scheduler
- D. Loader
Correct answer: A. Short-term (CPU) scheduler
The short-term scheduler picks the next ready process; the dispatcher then performs the actual switch. The long-term scheduler controls admission into memory, and the medium-term scheduler handles swapping.
More Operating Systems questions
- Processes (arrival, burst): P1 (0, 4), P2 (1, 3), P3 (2, 6), P4 (4, 2). What is the average turnaround time under FCFS?
- Reference string: 1, 3, 0, 3, 5, 6, 3, 1, 0, 6, 5, 3. With 3 frames, initially empty, how many page faults does FIFO replacement cause?
- Pure paging (fixed-size pages and frames) can suffer from which kind of fragmentation?
- The Banker’s algorithm is used for which strategy of handling deadlocks?
- If the time quantum of Round Robin scheduling is made larger than the longest CPU burst of every process, Round Robin behaves like:
- Processes (arrival, burst): P1 (0, 6), P2 (2, 2), P3 (3, 4), P4 (5, 1). Round Robin with quantum 2 is used; a newly arrived process joins…