a. Identify which of the pages was referenced most often as of the last time snapshot. [2]
b. Which page was referenced least often?
[2]
4. Given that the total number of requests is 2056, and 1786 of those requests are found in cache,
with a 190 nanoseconds (nSec) Average Cache Access Time, and 855 nanoseconds (nSec)
Average Main Memory Access Time. Answer the following questions.
[6)
a. Compute the HitRatio.
[2]
b. Compute the Average Memory Access Time.
[2]
c. Is this system optimal? Motivate your answer.
[2]
5. Given a system with 12 identical devices below, use the banker's algorithm and answer the
following questions.
[8]
Process Devices Allocated Maximum
Required
A
4
7
B
2
6
C
1
4
D
3
6
a. Calculate the number of available devices.
[2]
b. Determine the remaining needs for each process in the system.
[4]
c. Determine whether the system is safe or unsafe. Motivate your answer
[2]
6. Given the resource allocation and request matrix table below, answer the following questions.
[11]
Resource Resource
Allocation Request
Process Rl R2 R3 Rl R2 R3
Pl
0 10 100
P2
10 10 10
P3
0 10101
a. Draw a RAG.
[6]
b. What is the status of each process? Indicate whether the process is RUNNING or
WAITING.
[3]
c. Is the system in a deadlock? Motivate your answer.
[2]
7. Given a 60 track disk (0-59), it takes 0.2 ms to travel from one track to the next. The head is
initially positioned at track 33 and moving outwards. Using the C-SCAN strategy, illustrate how
the following requests would be serviced. Note that all the requests are present in the wait queue
and arrived in the order from left to right, ignore rotational time and transfer time. Request: 45,
20, 15, 33, 3, 18, 52.
[12)
GOOD LUCK!
Page 6 of 6