Bakery Program Examples

For problems or suggestions, please mailto:Timothy.Rolfe@mail.ewu.edu

MPI Code:

 Bakery.C  MPI implementation of the Bakery Algorithm — SPMD program.
 Bakery.rtf  Above code and specimen runs in two-column / 8-point-font format
 
 AppSchema.txt  Man pages regarding LAM/MPI's "Application Schema" — for MIMD programming.
 Controller.C  I/O module:  the user interface from the SPMD program in Bakery.C — needs to be rank 0.
 NumbServ.C  The number-server module from Bakery.C — needs to be rank 1.
 Clerk.C  The clerk process module from Bakery.C — needs to be rank 2.
 Customer.C  The customer process modules from Bakery.C — need to be rank > 2.
 RunSchema  The application schema under LAM/MPI to generate the processes with appropriate ranks

PVM Code:

 Bakery.h  Header file with PVM message tag definitions, etc.
 Controller.C  Host process:  the controller — this handles the user interface.
 NumbServ.C  Number server — started by the Controller, called by the Customer processes.
 Clerk.C  Clerk process —  started by the Controller, called by the Customer processes.
 Customer.C  Customer process — started by the Controller for each bakery purchase request
 PgmList.rtf  Listing of above material as a word processor document:  two-column landscape format