CPU Scheduling (and other) Simulators
The CPU Scheduling simulator you need for some of the problems in assignment 1 can be found at the UTSA CS Simulators website — look for the “Process (CPU) Scheduling” simulator download. Detailed documentation for the simulator can also be found on the website.
If you like, you can also obtain the simulator via the git version control system by cloning the CS 450 course repository — do this with the following command:
git clone git://github.com/michaelee/cs450.git
Look under the sim/ps directory of the cloned repository.
For those interested in some extracurricular hacking, you can also find a PDP-11 simulator under the sim/simhv directory (courtesy of the Computer History Simulation Project). Compile it with make, and you’ll find the simulator binary at ./bin/pdp11.
Running v6 is then a matter of downloading the software kit, unpacking it, and attaching to it in the simulator and booting up: (I moved the pdp11 binary into the unpacked v6 package directory before starting, below)
foxtrot:uv6swre$ ./pdp11
PDP-11 simulator V3.7-3
sim> set cpu u18
sim> att rk0 unix0_v6_rk.dsk
sim> att rk1 unix1_v6_rk.dsk
sim> att rk2 unix2_v6_rk.dsk
sim> att rk3 unix3_v6_rk.dsk
sim> boot rk0
@unix
login: root
# ls -l
total 182
drwxr-xr-x 2 bin 1040 Jan 1 1970 bin
drwxr-xr-x 2 bin 352 Jan 1 1970 dev
drwxr-xr-x 2 bin 304 Aug 20 12:18 etc
drwxr-xr-x 2 bin 336 Jan 1 1970 lib
drwxr-xr-x 17 bin 272 Jan 1 1970 mnt
drwxr-xr-x 2 bin 32 Jan 1 1970 mnt2
-rw-rw-rw- 1 root 28472 Aug 20 12:01 rkunix
-rwxr-xr-x 1 bin 28636 Aug 20 11:38 rkunix.40
drwxrwxrwx 2 bin 144 Aug 20 12:14 tmp
-rwxr-xr-x 1 bin 28472 Aug 20 12:01 unix
drwxr-xr-x 13 bin 224 Aug 20 12:22 usr
drwxr-xr-x 2 bin 32 Jan 1 1970 usr2
You can find more instructions on the PDP-11 simulator here, and on using the v6 software package here.