Simulators for Teaching Operating Systems Curriculum Examples

This web page can be found at /simulators/curriculum/sp_cur.html.

This simulator was originally designed to show how the standard solution to the Dining Philosophers Problem can allow starvation and to show how a modification of the algorithm (what I call the polite algorithm) can avoid starvation.

After using the simulator in this way for a few years, I have come to realize that this is too sophisticated for our students.

I mainly now use the simulator to illustrate how monitors are implemented and how processes move among the various simulator queues.

The following is a link to a lecture I give on monitor synchronization.
At the end of the lecture, I use the link at the bottom of the notes to run Demo 1 of the simulator.

Notes on monitor synchronization.