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


SVG not supported

Login to reply

👍?
helpful
3:07pm Fri 25th Aug, ANONYMOUS

Looking at the template we have been given to write our project in we find these two functions. void read_commands(char argv0[], char filename[]) { } // ---------------------------------------------------------------------- void execute_commands(void) { } According to my understanding of the project, where we are just simulating the system calls, we really only care about the time it takes to execute a process and the time it is "running" for. For example, ShortSleep 10usecs sleep 100000usecs We are not actually making our system sleep but simulating that it took 10usecs for it to execute on the CPU and now it is off the CPU and in a blocked queue for another 100000usecs. My question is, can I please have an example of how we can use these two commands. I thought having a loop that loops through each command and picking apart the times while comparing the name of the command (e.g. sleep and spawn) might do different things and we can add the times on CPU that way might be easier. Unless I am understanding the problem statement wrong. Thank you for your 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  8:08AM Aug 25 2024
Privacy policy