Assignment for Operating Systems | CSCE 311, Assignments of Operating Systems

Material Type: Assignment; Professor: Rose; Class: OPERATING SYSTEMS; Subject: Computer Science & Engineering; University: University of South Carolina - Columbia; Term: Fall 2009;

Typology: Assignments

Pre 2010

Uploaded on 10/01/2009

koofers-user-ahn-1
koofers-user-ahn-1 🇺🇸

10 documents

1 / 2

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
CSCE 311
Fall 2009
Assignment #1
Assigned: Sept. 3, 2009
Due: Sept. 10, 2009
Objective: To familiarize students with the basics of the OSP2 simulator. Students will
execute a working version of the simulator. Students should familiarize themselves with
the contents of chapter 1 of the OSP2 manual. While the information in these sections
may not be needed to complete this assignment, the next assignment will follow shortly
and will require some knowledge of the inner-workings of OSP2 that may not be covered
directly in lecture.
Required to turn in: You must turn in a “writeup” including a table of the simulation
results you are asked to provide in the following sections. This will be a hard copy, not an
electronic copy. You should include any pertinent information from the steps of the
project described below. This will not be the normal turn in procedure for OSP2
assignments. Future assignments will require that hard copy and electronic versions be
handed in.
Follow these steps to become familiar with the OSP2 simulator:
0. Create a project directory for your files, e.g., "Project1".
1. Create a subdirectory called “Misc”.
2. Using a browser, go to the 311 homework webpage:
http://www.cse.sc.edu/~rose/311/311homework.html
3. Download the demo version of the OSP2 simulator by right-clicking (If you are
using IE) on the Demo hyperlink. Select the "save target as…" option from the menu into
your project directory "Project1". Note: Internet Explorer recognizes that this is an
archive file but mistakenly believes that it should have a ".zip" file extension. Change the
file name in the "Save as" popup window from "Demo" to "Demo.jar" before clicking on
the "save" button.
4. Download the parameter files params1, params2, and params3 to your
subdirectory “Misc”.
5. To run the demo from your own directory (page 21 in OSP2 text):
Java –classpath .;Demo.jar osp.OSP
6. When the “OSP Parameter Setup” gui pops up, click on the “Load Parameters”
button. This allows you select which parameter file you want to use. By default, it looks
in the “Misc” subdirectory. Start by selecting “params1.osp”
7. Click on the “Run” button to start the simulation.
8. The output log will be written to OSP1.log
9. Examine the file to find values to complete the OSP1 column of this table.
pf2

Partial preview of the text

Download Assignment for Operating Systems | CSCE 311 and more Assignments Operating Systems in PDF only on Docsity!

CSCE 311

Fall 2009

Assignment

Assigned: Sept. 3, 2009

Due: Sept. 10, 2009

Objective: To familiarize students with the basics of the OSP2 simulator. Students will execute a working version of the simulator. Students should familiarize themselves with the contents of chapter 1 of the OSP2 manual. While the information in these sections may not be needed to complete this assignment, the next assignment will follow shortly and will require some knowledge of the inner-workings of OSP2 that may not be covered directly in lecture.

Required to turn in: You must turn in a “writeup” including a table of the simulation results you are asked to provide in the following sections. This will be a hard copy, not an electronic copy. You should include any pertinent information from the steps of the project described below. This will not be the normal turn in procedure for OSP assignments. Future assignments will require that hard copy and electronic versions be handed in.

Follow these steps to become familiar with the OSP2 simulator:

  1. Create a project directory for your files, e.g., "Project1".
  2. Create a subdirectory called “Misc”.
  3. Using a browser, go to the 311 homework webpage: http://www.cse.sc.edu/~rose/311/311homework.html
  4. Download the demo version of the OSP2 simulator by right-clicking (If you are using IE) on the Demo hyperlink. Select the "save target as…" option from the menu into your project directory "Project1". Note: Internet Explorer recognizes that this is an archive file but mistakenly believes that it should have a ".zip" file extension. Change the file name in the "Save as" popup window from "Demo" to "Demo.jar" before clicking on the "save" button.
  5. Download the parameter files params1, params2, and params3 to your subdirectory “Misc”.
  6. To run the demo from your own directory (page 21 in OSP2 text): Java –classpath .;Demo.jar osp.OSP
  7. When the “OSP Parameter Setup” gui pops up, click on the “Load Parameters” button. This allows you select which parameter file you want to use. By default, it looks in the “Misc” subdirectory. Start by selecting “params1.osp”
  8. Click on the “Run” button to start the simulation.
  9. The output log will be written to OSP1.log
  10. Examine the file to find values to complete the OSP1 column of this table.

Measured parameter OSP CPU utilization Average service time per thread Average normalized service time per thread Total number of tasks Threads summary

  1. Run the simulator twice more using in turn the parameter file "params2.osp" and then "params3.osp"
  2. Add new columns for each run (i.e. 2 and 3) to the chart you created in step 9. Observe the following trying to answer the succeeding questions:

Compare params1.osp, params2.osp and params3.osp 11a. What changed between the three parameter files? 11b. How did this affect the simulation results?

  1. Make a copy of "params1.osp" renaming it "params4.osp" using an editor vary one more parameter of the simulator. Compare and include it in your chart results. 12a. What parameter did you vary? 12b. What does the parameter do? 12c. Can you determine how the resulting simulator run was affected? If so, then how. If not, then why not?