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


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

Login to reply

👍?
helpful
4:44am Wed 13th Sep, Christopher M.

ANONYMOUS wrote:
> THe 1st image is a custom command (200 sleep 100) that produces the 2nd picture's output (583 68). And the 3rd image is the other custom command (201 sleep 100) that produces the 4th picture's output (568 70). > > In the 1st commands output, why does it create a new time quantum when its already reached 400 onCPU? Should it not just do what the 2nd commands ouput does when it reaches onCPU=400, and exit afterwards rather than create a new time quantum?
Whenever a process moved from READY->RUNNING it gets a new timequantum. In your 1st example, this is reported when the process's transition is complete, and the process is now able to (continue) executing. In your 2nd example, the process is already running on the CPU, calculating something, and so doesn't get a new timequantum.

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