CS FundamentalsVery hardGATE CS · Advanced
A stride scheduler gives processes A, B and C 100, 50 and 250 tickets respectively, with stride = 10000 / tickets. Every process starts with pass value 0. At each quantum the process with the smallest pass value runs (ties go to the alphabetically earliest name) and its pass value then increases by its stride. Which process sequence runs in the first 10 quanta?
- A. CCACCABCCC
- B. CBACCACCCB
- C. CCACCBCCAC
- D. ABCCCACCAB
Correct answer: D. ABCCCACCAB
Strides are A = 100, B = 200, C = 40. Tracking the three pass values quantum by quantum gives the sequence ABCCCACCAB; a different tie-break or a different starting pass changes it.
More Operating Systems questions
- A process uses 100 MiB of memory. A page-table entry is 8 bytes, and on average half of the last page is wasted. Among page sizes that are…
- The aging algorithm keeps an 8-bit counter per page for pages 0-3. At the end of every clock tick each counter is shifted right by one bit…
- A file system has 1 KB blocks and 4-byte block pointers; the inode (already in memory) holds 12 direct pointers and one single-, one…
- Three periodic tasks (C, T) with deadline equal to period, all released at t = 0, are: (1, 4), (4, 9), (4, 15). Their total utilisation is…
- Four processes with CPU bursts 5, 3, 8 and 2 ms arrive at time 0 in that order and are scheduled by FCFS. What is the average waiting time?
- Processes with bursts 6, 8, 7 and 3 ms all arrive at time 0 and are scheduled by non-preemptive SJF. What is the average waiting time?