Response time, the metric MLFQ optimises most for interactive workloads, is
Athe total time a process spends in the ready queue
Bthe total time from arrival to completion
Cthe number of context switches per process
Dthe time from arrival to first CPU service
Answer & Solution
Correct answer: D. the time from arrival to first CPU service
Response time = first-CPU minus arrival.
For an interactive process (you click a button, the UI should react), what matters is how fast the process gets ITS FIRST taste of CPU, not when it finishes.
Waiting time is total time in ready queue (different)
turnaround is arrival-to-completion
context switch count isn't a standard metric.
MLFQ boosts I/O-bound (interactive) processes to keep response time low.
Keep practising Operating Systems
Browse all Operating Systems questions for GATE CSE, or explore more Computer Science topics.
Related questions
On a MULTI-CORE system, a SPIN LOCK is generallyA LIVELOCK differs from a DEADLOCK in thatSuppose thread A acquires lock L1, then thread B acquires lock L2. Now A tries to acquire A CRITICAL SECTION isA LOCK is considered FAIR ifA LOCK (mutex) is used by concurrent threads toWhich of the following is NOT typically minimised by a CPU scheduler?The PRIMARY DISADVANTAGE of FIFO scheduling is