GATE / CS ARCHIVE

GATE CSE 1995 / QUESTION 2.6

Intentional idling for a scheduling objective

Operating Systems · CPU Scheduling · Full GATE CSE 1995 paper

GATE 1995, Q2.6 2 marks · MCQ
Report issue

CPU Scheduling

Question 2.6, GATE 1995: Nonpreemptive jobs (arrival,burst) are 1:(0,9),2:(0.6,5),3:(1,1). Which listed sequence is optimal, with how much idle time?
Tap to enlarge
Your answer
Answer & solution

Answer: A: [3,2,1],idle 1, for minimum total completion/turnaround time (no official key was published)

Wait until time 1, run job 3 to time 2, job 2 to time 7 and job 1 to time 16. Completion times sum to 25. For each of the six orders, starting each job as early as its order permits gives sums 38,34,27.8,35.8,25,29 respectively for 123,132,231,213,321,312. Thus 321 minimizes their sum and leaves the CPU idle for one initial time unit. Subtracting fixed arrival times shows the same order minimizes mean turnaround and waiting time. The source says “optimal” without specifying this objective; minimizing makespan alone would instead avoid initial idling.

Original paper, page 3