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).