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


SVG not supported

Login to reply

👍?
helpful
11:52am Fri 8th Sep, ANONYMOUS

I've been trying to get the sample solution to work as intended, but it seems to run infinitely until 'giving up' no matter what I try. My commands file is one command: sleeptask 15usecs sleep 100usecs 6usecs exit And sysconfig: # devicename readspeed writespeed # device usb3.1 640000000Bps 640000000Bps device terminal 10Bps 3000000Bps device hd 160000000Bps 80000000Bps device ssd 480000000Bps 420000000Bps # timequantum 5usec When I use the sample solution, the first syscall runs as intended (System runs until 15 usecs of pid0 on cpu have run, then sleeps for 100usecs , idling until time = 167, where it moves back to the ready queue). After the sleep call, however, it just repeatedly moves between ready and running, until it eventually expires (ERROR - too much output). Can anyone tell me why this is? This seems to occur for any command with more than a simple exit call (including spawn, although it correctly alternates between the two processes, without actually executing any syscalls, causing the same issue).



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