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


SVG not supported

Login to reply

👍?
helpful
2:18pm Fri 8th Sep, Marc L.

Hi there, I did some testing, and it turns out the sample solution doesn't unblock if the unblock time occurs while another process is unblocking. I think that in the sample solution, it only checks through once if anything can be unblocked when the CPU is idle and doesn't account for the time elapsed during the context changes. When a process unblocked 10usecs elapses. During that time, another blocked process may unblock. In the screenshot below, the sleeping function is meant to unblock at time 89, but instead only unblocks after the previously unblocked process has finished using the CPU.



This article has 1 attachment:

 

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