CS FundamentalsEasyGATE CS (PYQ pattern)
A 200 KB heap is managed with a first-fit free list; adjacent free blocks are merged when memory is freed. Operations in order: alloc A=30, B=20, C=50, D=10, free B, free C, alloc E=35, free A, alloc F=15 (sizes in KB). What is the size of the largest free block afterwards?
- A. 70 KB
- B. 110 KB
- C. 45 KB
- D. 90 KB
Correct answer: D. 90 KB
Tracking the free list with merging, the final free blocks are [(15, 15), (65, 35), (110, 90)]; the largest is 90 KB.
More Operating Systems questions
- 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…
- 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…