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


SVG not supported

Login to reply

👍?
helpful

1. The read/write processes in the sample solution seem to be mostly fixed, however, the time to complete the read/write operation seems to be off by a multiple of 10. In the screenshot below, I am reading 10 Bytes from terminal which has a read speed of 10 Bytes/second. The read operation should take 1 second = 1 000 000 usecs, but the sample solution gives 10 000 000 usecs. 2. In an earlier post, you said that regardless of how long a process sleeps for, the first process that requests to sleep should also be the first process to be unblocked. E.g. if pid1 called sleep for 100usecs at time 10, and pid0 called sleep for 10usecs at time 30, then pid1 would still be unblocked first despite pid0 being ready to unblock at time 40. Although you did say this, I do believe the sample solution is more correct. It wouldn't make sense to keep pid0 blocked just because another process called sleep earlier and for a longer time.



This article has 2 attachments:

 

 

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