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


SVG not supported

Login to reply

👍x1
helpful
10:25pm Tue 29th Aug, ANONYMOUS

Sometimes when a state transition is made, the transition itself takes 1usec to run, but other times it doesn't. Maybe I'm misunderstanding something about the correct behaviour. For example, at the start of every boot, a process gets spawned and is moved to running, which starts at 0usecs and finishes at 5usecs. This means that at 0usecs, the transition "starts." Then from the start of t=1usec to the end of t=5usecs, it actually does the transition. This equals 6usecs total. Another example is shown in the picture I've attached. In the first transition shown, the CPU is idle at 115usecs, it starts the transition from sleeping to ready at 116usecs, and actually transitions from 117usecs to 126usecs. Here, the transition takes 11usecs in total, instead of 10usecs. However, in the second transition, the OS is computing at 126usecs. At the exact same time, it starts the transition from ready to running. Then it actually transitions between 127usecs and 131 usecs. Thus, it doesn't take 1usec to start, and the transition takes 10usecs like I'd expected. I'm not sure if the sample is wrong or not. If it is correct, what is the difference between these transitions? Why does one take up 1usec to start while the other doesn't? What is the rule for determining if a transition will take time to start or not?



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