proj5 - CMSC 330: Organization of Programming Languages...

Info iconThis preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon
CMSC 330: Organization of Programming Languages Project 5 Multithreaded Metro Simulation
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
CMSC 330 2 Goals 1. Implement simulation display Examine log file of simulation events Display state of simulation 2. Implement multithreaded simulation Separate threads for trains, passengers Use synchronization to avoid data races Use wait / notify for efficiency 3. Implement simulation verifier (optional) Examine log file of simulation events Discover illegal / missing simulation events
Background image of page 2
CMSC 330 3 Metro Simulation You are given Parser for reading simulation parameters / events Code for printing simulation events You need to simulate Trains moving along metro line Passengers boarding / exiting trains
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
CMSC 330 4 Simulation Parameters Format === Lines === <color>, <station 1>, <station 2>… === Trains === <color>=<num> === Passengers === <name>, <station 1>, <station 2>… === Output === <event>
Background image of page 4
Image of page 5
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 01/13/2012 for the course CMSC 330 taught by Professor Staff during the Fall '08 term at Maryland.

Page1 / 13

proj5 - CMSC 330: Organization of Programming Languages...

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online