The purpose of this project is to simulate an operating system and listen to commands from users. The project uses a first-come, first-serve preemptive CPU scheduling algorithm. Initially, the project will ask the user two questions:
a) How much memory should be allocated? (Up to 4 billion bytes) b) How many hard disks exist
The program will start listening for command input by users including:
>> A <INT PRIORITY> <LONG MEMORY>
>> d <INT HARD-DISK-NUMBER> <STRING FILE-NAME>
>> exit
>> D <INT HARD-DISK-NUMBER>
>> fork
>> S r
>> S i
>> S m
-
Unzip and extract files into a convenient directory; ex: the Desktop, Documents, home, etc.
-
Change directory into /operating-systems-simulator
-
In terminal, change directory into ../operating-systems-simulator
-
Use command: make clean make ./output