CS 3733 Operating Systems, Recitation Session C1
In this session you will set up your account to run the
Process Scheduling Simulator.
- You can run this either from Linux or Windows.
To run on our Linux machines:
- Read this if running from VDI
- Log on to your Linux Account.
- Create a directory called recC under your CS 3733 directory.
- Download this tar file to your recC
directory.
- Make a recC1 subdirectory of recC.
- Untar the files into the recC1 directory.
- In the recC1 directory, execute runps
- If you are having trouble running the simulator from Linux:
Get
this file, make it executable, and use it instead of runps.
To run from windows directly:
- Download this zip file into a directory called RecC.
- If you are using VDI, make sure this is on your V drive.
- Make a subdirectory of recC called recC1.
- Unzip the contents to recC1.
- Run the simulator by double clicking on runps.bat
- If asked to edit a file, you can use notepad.
- If all goes well you will have started the Process Scheduling Simulator.
- Click on the Quit button on the lower right part of the window.
- Edit the file psconfig.
One of the lines in this file starts with user.
Replace the name there by your name.
- Execute runps again.
- Locate the button labeled Open Log and click on it.
The button should now say Close Log.
You have created a log file called logfile.html in your
recC1 directory.
- Click on the Run Experiment button.
This will start the simulator running.
It will complete in about one second.
30 processes have executed a few CPU bursts each.
Two runs should have completed, one for FCFS and one for SJF.
- Click on the Show All Table Data button.
This should pop up a table of statistics on the results of the run.
Look at the average waiting times for the two algorithms.
- Open up a browser and look at the file logfile.html.
The file should have your name on the first line, followed by some
information that you might not understand.
- Click the Log All Table Data button in the simulator window and
reload the contents of your browser.
You should see a table similar to the one produced by the
Show All Table Data button.
- Now click on Draw Gantt Chart and this should pop up a small
window allowing you to choose FCFS or SJF.
Choose FCFS and you will see a Gantt Chart showing the states of the
30 processes.
Push the Log button in the lower right corner of the Gantt chart.
Then push the Hide in the lower left corner of the Gantt chart.
Click on Draw Gantt Chart again and repeat the process for SJF.
- Reload the data in your browser window and you should see the two Gantt
charts there.
- Push the Close Log button and then the Quit button.
- Demonstrate to the TA that you have created a log file containing the
table and two Gantt Charts.
- You will be doing a major assignment using this simulator.