It's UWAweek 29 (mid-year break)


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

 UWA week 34 (2nd semester, week 5) ↓
SVG not supported

Login to reply

5:11pm Thu 24th Aug, Christopher M.

"Asher Blechynden" <23*5*1*3@s*u*e*t*u*a*e*u*a*> wrote:
> If the program runs for 200usecs, would it run for 100, be blocked, run 100, be blocked, then run 0 and immediately terminate or would it only be blocked once as the second block is arguably redundant
Firstly, let's use the correct terminology. A process whose time-quantum expires is not blocked, it moves from RUNNING to READY. Your process, above, would run for 100usecs, move to the READY queue, eventually move back to the CPU, run for 100usecs and, finally, call exit after 100 more users. The concept of running for 0usecs makes no sense.

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