It's UWAweek 30 (2nd semester, week 1)

help2002

This forum is provided to promote discussion amongst students enrolled in CITS2002 Systems Programming.
Please consider offering answers and suggestions to help other students! And if you fix a problem by following a suggestion here, it would be great if other interested students could see a short "Great, fixed it!"  followup message.
Displaying selected article
Showing 1 of 1168 articles.
Currently 18 other people reading this forum.


 UWA week 37 (2nd semester, week 7) ↓
SVG not supported

Login to reply

👍?
helpful
7:46pm Tue 12th Sep, Christopher M.

ANONYMOUS wrote:
> Hey everyone, I wanted to ask why when doing a context switch from running to blocked on the sample solution when issuing the sleep command, it has the 10 usec transition from Running to Blocked outside the allocated 15usecs for sleeping and then the 10usec transition from Blocked to Running within the allocated 15usecs? Is this for all processes or just for sleep?
(from the perspective of the process) if a process wishes to sleep for 15usec, then it wishes to stop sleeping 15usec into the future. It doesn't care what happens when it is sleeping. So the actual time sleeping, can include (overlap) the transition time. Experiment: what happens if the process requests to sleep for *less* than the transition time?

The University of Western Australia

Computer Science and Software Engineering

CRICOS Code: 00126G
Written by [email protected]
Powered by history
Feedback always welcome - it makes our software better!
Last modified  7:24AM Jul 25 2024
Privacy policy