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


SVG not supported

Login to reply

👍?
helpful
12:13pm Thu 7th Sep, Lewei X.

I was doing some extensive testing of my program, and noticed that in the sample solution, unused commands seemed to be affecting the output in some larger command files. I tried downsizing the commands file to see if I could replicate the issue but didn't really work so here's the example: shell 10usecs spawn cal 17usecs write usb3.1 290192B 20usecs wait 30usecs wait 32usecs sleep 1232usecs 50usecs spawn Jo 60usecs exit cal 5usecs spawn hut 10usecs read ssd 281B 20usecs wait 40usecs exit hut 10usecs spawn mot 20usecs write hd 29013B 30usecs wait 50usecs exit mot 5usecs spawn pwd 15usecs sleep 10usecs 20usecs wait 40usecs exit pwd 5usecs spawn cd 7usecs write terminal 1233922B 20usecs spawn PP 30usecs spawn Jo 40usecs spawn OwO 50usecs wait 60usecs exit cd 9usecs spawn Jo 11usecs sleep 10usecs 14usecs wait 30usecs spawn Jo 50usecs sleep 213usecs 60usecs spawn UwU 70usecs spawn OwO 80usecs exit Jo 2usecs read terminal 4B 50usecs spawn PP 100usecs exit UwU 10usecs read usb3.1 342212B 20usecs write usb3.1 324123B 30usecs spawn Jo 50usecs exit OwO 40usecs write ssd 3902B 60usecs spawn UwU 100usecs wait 150usecs sleep 1023usecs 200usecs exit PP 100usecs read terminal 10B 200usecs wait 210usecs sleep 1232usecs 300usecs read usb3.1 32B 500usecs exit FF 200usecs spawn poopoo 210usecs wait 230usecs exit poopoo 100usecs sleep 21312usecs 200usecs exit The last 2 commands FF and poopoo are never spawned, so whether or not they are there shouldn't affect the output. The attachment below shows how the sample solution produces different outputs depending on whether the last 2 commands are in the command file. The first output is my program's output, the second output is the sample solution output of the exact same file. Third output is the sample solution output when the last 2 commands are deleted from the commands file.



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