CS FundamentalsHardGATE CS (PYQ pattern)
A fixed-size job runs 6 times faster on 8 cores than on 1 core. Assuming Amdahl's law holds exactly (a serial fraction f, the rest perfectly parallel), what speedup should be expected on 32 cores, approximately?
- A. 24.00
- B. 12.92
- C. 30.52
- D. 21.00
Correct answer: B. 12.92
1 / (f + (1 - f)/8) = 6 gives 8f + 1 - f = 8/6, so 7f = 1/3 and f = 1/21. On 32 cores: 1 / (1/21 + (20/21)/32) = 21 / 1.625 = 12.92. Scaling linearly (6 x 4) gives 24; Gustafson's scaled speedup 32 - 31f gives 30.52; 21 is the limit 1/f for infinitely many cores.
More Operating Systems questions
- Three philosophers sit at a table with three forks; philosopher i always picks up fork i (left) first and then fork (i+1) mod 3 (right)…
- A data TLB has 64 entries organised as 16 sets of 4 ways (set index = virtual page number mod 16, LRU within a set). A loop touches…
- The enhanced clock algorithm uses (R, M) bits with 3 frames (initially empty, newly loaded pages get R = 1 and M = 1 if loaded by a…
- Page-fault-frequency control with threshold T = 3: on a fault at time t, if more than 3 time units passed since the previous fault, all…
- A disk head is at cylinder 50 at t = 0, moving towards higher cylinders, and needs 1 time unit per cylinder (service itself is…
- Round Robin with quantum 3 ms, three processes arriving at t = 0 with bursts (CPU, I/O, CPU) in ms: P0 (5, 4, 4), P1 (3, 6, 3), P2 (6, 2…