Skip to content
A program that creates an empty shell of an OS simulator capable of basic tasks in preparation for a more comprehensive simulation later
C Makefile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
Makefile
README.md
cs4760Assignment3Fall2017Hauschild.pdf
oss.c
user.c

README.md

Semaphores and Operating System Simulator

This program creates an operating system simulator that forks child processes, maintains a simulated system clock, and produces a log file of when each child process terminates.

Child processes randomly terminate within 1 to 1,000,000 nano seconds of being created.

How to Build and Run

  1. Clone or download the project

Within the root of the project:

  1. Run make
  2. Run oss

Arguments

 -h  Show help.
 -s  The maximum number of slave processes spawned. Defaults to 5.
 -l  Specify the log file. Defaults to 'oss.out'.
 -t  Time in seconds master will terminate itself and all children. Defaults to 20.
 -m  Simulated time in seconds master will terminate itself and all children. Defaults to 2.

Read cs4760Assignment3Fall2017Hauschild.pdf for more details.

You can’t perform that action at this time.