Solution
c)
FCFS:
Disk head movement is
30->27->129->110->186->147->41->10->64->120
=(30‐27) + (129‐27) + (129‐110) + (186‐110) + (186‐147) + (147‐41) + (41‐10) + (64‐10) + (120‐64)
=486
Time taken= 486*100ms
=48.6 ms
SSF
30->27->41->64->110->120->129->147->186->10
(30‐27) + (41‐27) + (64‐41) + (110‐64) + (120‐110) + (129‐120) + (147‐129) + (186‐147) + (186‐10)
=338
Time taken= 338*100ms
=33.8 ms
SCAN
30->27->10->0->41->64->110->120->129->147->186
=(30‐27) + (27‐10) + (10‐0) + (41‐0) + (64‐41) + (110‐64) + (120‐110) + (129‐120) + (147‐129) + (186‐147)
=216
Time taken= 216*100ms
=21.6 ms
--
all the best
(c) Assume that . accessing and searching the TLB takes 5 ns, . transferring the data from the TLB into a register...
A computer uses virtual memory implemented by paging. The TLB lookup takes 100 ns and the update takes 200 ns. The PT lookup takes 1 µs and the update takes 2 µs. Loading a word from main memory onto the CPU takes 10 µs and loading a page from the disk into main memory takes 10 ms. The TLB hit ratio is 0.4 and the main memory hit ratio is 0.3. Compute the average access time for a referenced word:...
2. A computer uses virtual memory implemented by paging. The TLB lookup takes 150 ns and the update takes 300 ns. The PT lookup takes 2 us and the update takes 4 us. Loading a word from main memory onto the CPU takes 25 us and loading a page from the disk into main memory takes 20 ms. The TLB hit ratio is 0.3 and the main memory hit ratio is 0.4. Compute the average access time for a referenced...