UNDER CONSTRUCTION!

MCS 370, Operating Systems, Programming Assignments

Chapter 1

Chapter 2
Sequential (warm-up) Java Assignment.

Read Chapters 1-2 of the Java text. Look at Lab 2.2 on page 18 and Lab 2.5 on page 67. Do one or more of the assignments in these Labs. First try a single class implementation, then one with several classes. This way you will learn how to compile and run. No need to turn anything in.

Java is currently available on the queen machine in the MCS group. There is an on-line tutorial available. Here is how to compile a program in a file prog.java. First, set up your CLASSPATH variable by putting the statement

setenv CLASSPATH .:/usr/local/JDK/lib/classes.zip:/home/shartley/lib
in your .login file. Then logout and login again so this setting is in effect. Every time you login in the future the setting will be in effect, too. Now you can do the following steps to compile and run.
javac prog.java
java Program
where Program is the name of the class in prog.java containing main(). Do these Labs as soon as possible so you are comfortable with the sequential features of Java and how to compile and run a Java program.

Chapter 3
Simulating memory allocation. Submit to directory Pr1.

The submit command will not accept for electronic submission any file containing ``control'' (non-printing) characters. Unfortunately, control characters are put into the typescript file produced by a script session, used to record sample runs in a programming assignment. These control characters must be removed before submission. The way to do this with the vi editor is as follows.

% vi typescript
:1,$s/^V^M//g
:1,$s/^V^H//g
After vi starts up, you enter two ``colon'' commands. The notation ^X where X is V, M, or H means control-V, control-M, and control-H. The control-V escapes the following control-M or control-H in the command so it is entered literally.

For extra credit, you may do the following. Disregard the due date in the assignment. You have until the last week of classes (December 6). Do the animation for extra extra credit.
Simulating virtual memory paging. Submit to directory Pr2.

Chapter 4

Chapter 5
For extra credit, you may do the following. Disregard the due date in the assignment. You have until the last week of classes (December 6). Do the animation for extra extra credit.
Simulating disk arm scheduling. Submit to directory Pr3.

Chapter 6

Chapter 7

Chapter 8

SJH
shartley@mcs.drexel.edu