It's UWAweek 9 (1st 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 5 other people reading this forum.


 UWA week 36 (2nd semester, mid-semester break) ↓
SVG not supported

Login to reply

👍?
helpful
9:37am Thu 7th Sep, Jacob R.

Every syscall effectively takes one extra usec to run, after the time it requires on the CPU. So this is where the extra usec comes in. So just implement it before every syscall occurs. And then for your issue with sleeping, it went to sleep at 16, so it should wake up at 36. Which it does. I mean I get what you're saying, but you didn't count the extra usec when it starts transferring from READY to RUNNING, which is taken as part of the time. As in on the 36th usec it wakes up.

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  5:07AM Sep 06 2023
Privacy policy