It's UWAweek 10 (1st semester, week 2)


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 2 other people reading this forum.

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

Login to reply

4:54pm Thu 14th Sep, Christopher M.

> Hi, I had a question that might be related; when the CPU is idle, should we increment in ticks of one, or just skip straight to the next instruction? For longer commands (like sleep = 1000000usecs) my program seems to take a very long time, especially versus the sample solution.
Depends on your implementation - you may increment/advance the time by any amount, though just be careful not to 'miss' any events if you advance it along way into the future. If you ever find a need for time to go backwards, it strongly suggest that your approach is wrong or inelegant.

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