A Simple Task 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.
Fred Howell
Please contact our
webadmin with any comments or changes.
Unless explicitly stated otherwise, all material is
copyright © The University of Edinburgh.