Access Millions of academic & study documents

3 At time 110 four processes (P1 – P4) are waiting for a timeout si

Content type
User Generated
Showing Page:
1/3
3. At time 110 four processes (P1 P4) are waiting for a
timeout signal.
They are scheduled to wake up respectively at times: 130,
145, 175, 210.
(a) Using a priority queue with time differences show
the queue and
content of the countdown Timer at time 110.
Process queue
Time Difference
Timer
(b) P1 wakes up and immediately issues a call to
SetLTimer(tn, 50).
Show the priority queue after the call. (call takes no
time).
Process queue
Time Difference
Timer
(c) P2 wakes up and immediately issues a call to
SetLTimer(tn, 40).
Show the new priority queue after the call. (call
takes no time).
Process queue
Time Difference
Timer
(d) P3 wakes up and immediately issues a call to
SetLTimer(tn, 40).
Show the priority queue after the call. (call takes no
time).
Process queue
Time Difference
Timer
Process queue
Time Difference

Sign up to view the full document!

lock_open Sign Up
Showing Page:
2/3
Solution
Process queue
1
3
3
4
2
Time Difference
12
14
12
15
20
Timer
Process queue
1
3
3
4
2

Sign up to view the full document!

lock_open Sign Up
Showing Page:
3/3

Sign up to view the full document!

lock_open Sign Up
Unformatted Attachment Preview
3. At time 110 four processes (P1 – P4) are waiting for a timeout signal. They are scheduled to wake up respectively at times: 130, 145, 175, 210. (a) Using a priority queue with time differences show the queue and content of the countdown Timer at time 110. Process queue Time Difference Timer (b) P1 wakes up and immediately issues a call to SetLTimer(tn, 50). Show the priority queue after the call. (call takes no time). Process queue Time Difference Timer (c) P2 wakes up and immediately issues a call to SetLTimer(tn, 40). Show the new priority queue after the call. (call takes no time). Process queue Time Difference Timer (d) P3 wakes up and immediately issues a call to SetLTimer(tn, 40). Show the priority queue after the call. (call takes no time). Process queue Time Difference Timer Process queue Time Difference Solution Process queue 1 3 3 4 2 Time Difference 12 14 12 15 20 Time ...
Purchase document to see full attachment
User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.
Studypool
4.7
Indeed
4.5
Sitejabber
4.4