CS FundamentalsEasyGATE CS (PYQ pattern)
A machine has 2 GB of RAM; the OS occupies 512 MB and every user process needs 192 MB, so as many whole processes as fit are kept in memory. Each process waits for I/O 80% of the time, independently (CPU utilisation = 1 - p^n). By how many percentage points does CPU utilisation rise if 1 GB more RAM is added?
- A. 11.3
- B. 7.9
- C. 11.7
- D. 0.0003
Correct answer: A. 11.3
Before: (2048 - 512) / 192 = 8 processes, utilisation 1 - 0.8^8 = 0.832. After: (3072 - 512) / 192 = 13.33, so 13 processes, 1 - 0.8^13 = 0.945. Rise = 11.3 points. Forgetting the OS share (10 and 16 processes) gives 7.9; using 13.33 processes gives 11.7; using 0.2 as the wait probability gives almost 0.
More Operating Systems questions
- Highest Response Ratio Next (non-preemptive; ratio = (waiting time + burst) / burst, evaluated whenever the CPU becomes free) schedules…
- Four processes with CPU bursts 10, 4, 2 and 1 ms arrive together at time 0 in that order and are scheduled by Round Robin with quantum 3…
- Round Robin, quantum 4 ms, four processes arriving together at time 0 in the order P1..P4 with bursts 9, 5, 2 and 6 ms. Every switch to a…
- A system has 48-bit virtual addresses, 8 KB pages and 2^40 bytes of physical memory. Each page-table entry holds a frame number plus 5…
- A 7200 RPM disk has 500 sectors of 512 bytes per track and an average seek of 8 ms. A 1,048,576-byte file is stored in consecutive sectors…
- A program loops over pages 1, 2, 3, 4, 5 six times in cyclic order (30 references) with 4 frames, initially empty. How many page faults…