CS 3733 Operating Systems, Spring 2005 Recitation Session 3
Week of February 7.
In this session you will set up your account to run the
Process Scheduling Simulator.
- Log on to your account in the Linux Lab.
- Create a directory called assign2 under your CS 3733 directory.
- Download this tar file to your assign2
directory.
- Create a rec03 subdirectory of assign2 and untar
the files into that directory.
- In that directory, execute runps
- 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
rec03 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 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 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.