Sim Java applet test 4
A simple work farm
A simulation of a simple work farm. The farmer sends out jobs to
the three worker CPUs. When a CPU is busy with a job its work router
(seen above it) passes new jobs on to the next CPU instead. If all
the CPUs are busy then job will pass through all the routers and into
the waste bucket. After a CPU finishes processing a job, it passes the
result down to the work bucket, and signals its work router that it
is free for more work.
Try playing with the farmer's delay between job arrival, and the worker's
processing delay to see if you can show overflow, and starvation.
The applet's source code.
Ross McNab -
rmcn@dcs.ed.ac.uk
Department of Computer Science
University of Edinburgh