CS FundamentalsModerateGATE CS
A system has 62 free frames shared by two processes of sizes 10 pages and 127 pages, allocated proportionally to size (rounded down). How many frames does each get?
- A. 31 and 31
- B. 5 and 57
- C. 4 and 58
- D. 4 and 57
Correct answer: D. 4 and 57
Proportional allocation: 10/137 × 62 ≈ 4.53 → 4 and 127/137 × 62 ≈ 57.47 → 57. Equal allocation would give 31 each.
More Operating Systems questions
- A buddy system manages 512 KB, initially one free block. Requests arrive: A = 70 KB, B = 35 KB, C = 80 KB, then A is freed, then D = 60…
- Memory holes in address order: 100 KB, 500 KB, 200 KB, 300 KB, 600 KB. Requests in order: 212 KB, 417 KB, 112 KB, 426 KB (a hole that is…
- A virtual address is 0x00403A7C on a system with 4 KB pages and a two-level page table (10-bit outer index, 10-bit inner index, 12-bit…
- 32-bit addresses, 4 KB pages, 4-byte PTEs, two-level paging (10/10/12). A process uses only 8 MB of code at virtual address 0 and 4 MB of…
- A system has resource types A, B, C. Available = (2,1,0). Allocation: P0 (1,1,0), P1 (0,1,2), P2 (2,0,1), P3 (1,0,0). Max: P0 (3,2,2), P1…
- Banker's algorithm state: Available = (3,3,2). Allocation: P0 (0,1,0), P1 (2,0,0), P2 (3,0,2), P3 (2,1,1), P4 (0,0,2). Max: P0 (7,5,3), P1…