Home › GATE CSE › computerscience › Operating Systems › Response time, the metric MLFQ optimises most fo…
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.
Related questions
On a MULTI-CORE system, a SPIN LOCK is generallyDisabling INTERRUPTS as a way to implement mutual exclusion on a single-CPU system isA LIVELOCK differs from a DEADLOCK in thatSuppose thread A acquires lock L1, then thread B acquires lock L2. Now A tries to acquire Without atomic hardware support, building a correct mutual-exclusion lock for $N \geq 2$ tA CRITICAL SECTION isLinux's `pthread_mutex_lock()` is typically implemented as a HYBRID:What is the PRIMARY problem with using a SPIN LOCK on a SINGLE-CPU uniprocessor system (wi