COMP 345: Operating systems
[fall 2009]

Syllabus(in pdf)

Projects/Homeworks

Project 5
OS5 project description (in pdf).
Function to set up reference string.

Project 4
OS4 project description (in pdf).
inputOS4.txt - sample input file.

Project 3
OS3 project description (in pdf).
OS3SampleIn.txt - sample input file as shown in project description.

Project 2
OS2 project description (in pdf).

Project 1 resources:
Some Linux notes (in pdf) as handed out in class.
POSIX Threads Programming - threads tutorial from Lawrence Livermore Lab.
POSIX threads explained - more (similar) examples of threads.
Another POSIX Threads Tutorial - yep, that's what this is.

Handouts/In-Class Examples

Virtual Memory

Locality shown in 1971 IBM research paper

Linux Forks-n-Threads

fork1.cc - simplest program using fork().
fork2.cc - attempt at summing all odd numbers up to MAX.
threads1.cc - first try at "Hello World" with threads.
sumodd1 handout
sumodd2.cc
sumodd3.cc - final version of sum of odd integers problem with threads.

Linux Semaphores

sem1.cc - starting point for in-class semaphore problem.
sem2.cc - second version.
sem3.cc - example of Linux's "semaphore" capabilities.
procon.cc - producer-consumer example.

Last updated