Never mind, I have interpreted the first time value to be the amount of CPU time the system call requires rather than the total time the process has had CPU for.
Have I misunderstood the command file or does the sleep CPU time not register in the sample solutions? The following is the file contents and output measurements from the sample solution.
For the final version of the code, should all printf calls used for debugging be kept inside the code or would it be better to delete these debugging parts which are no longer required?
I am unclear about the formatting of the input command file. I have tried the following 2 input files for the sample solution.
Input 1
first
4usec exit
Input 2
first
4usecs exit
From both of which returned with error "line 2 of commands i...