It's UWAweek 9 (1st semester, week 1)


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

 UWA week 36 (2nd semester, mid-semester break) ↓
SVG not supported

Login to reply

5:03pm Sun 3rd Sep, Jacob R.

Yeah, so with the commands file, a process is created and runs the first command in the file (shortsleep in this case), with the other commands in the file being possible commands that could be called by the first command (or any processes that the first command's process spawns, or any processes that they spawn and so on). So the command file just lists possible commands, and the first of those commands is loaded into a process. From then on, you just have to simulate that process and ensure it can execute the syscalls in the command it runs. Like I use structs to represent most of my things. Like syscalls, the commands that contain the syscalls, and then the processes that contain a specific command. So you really just need to read the commands and syscalls from the file and add them into those structs, and then just refer to those structs during the simulation, possibly through pointers for ease.

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  5:07AM Sep 06 2023
Privacy policy