It's UWAweek 19

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


SVG not supported

Login to reply

👍?
helpful
12:52am Fri 8th Sep, Luyang C.

Hello, In my understanding, in this short example: # shortsleep ← tab →10usecs sleep 1000000usecs ← tab →50usecs exit in shortsleep command, the procedure should be ready to process(10usecs)→sleep(20usecs)→after sleep(1000020usecs)→before exit(1000060usecs) but what I got from the smaple solution for only shortsleep command is 1000073usecs, is that means exit takes another 10 usecs? And if I try to add another longsleep command like this: # shortsleep ← tab →10usecs sleep 1000000usecs ← tab →50usecs exit # longsleep ← tab →10usecs sleep 5000000usecs ← tab →50usecs exit What I got is always 50usecs more than the sample solution, is there any manipulations can be done in different commands at the same time? or is there any manipulations can be done within the sleep time? I'm wondering where I got this 50usecs more? Thanks!

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  8:08AM Aug 25 2024
Privacy policy