CMSC 838F, Spring 2007

Language-Based Techniques for Concurrent and Distributed Software

Project 2

Due Monday, April 2, 2007

The Project

Re-implement the simulator from Project 1, but do so in OCaml using the Event and Thread modules (i.e., use CML-style concurrency).

Collaboration

For this project, I'd like to not have everyone re-implement the elevator file parser. So, brownie points to the first person who posts a sample OCaml program that (1) reads the proper arguments off of the command line and (2) reads in the elevator file and produces an OCaml data structure with the contents of the file parsed in. The OCaml program should be a standalone program compiled with ocamlc. (Feel free to include a makefile.)

Grading

To grade your projects, I'll run your code past the same test cases as for project 1.

Valid HTML 4.01!