The MultiProcessor Simulator / Experimental Version 1.0

by Fe'lix E. Quevedo Stuva


Nice test program

This example does not other objective to just test the communication
and share memory features of the simulator. In general allocates
share memory segment and sends a round ribbon greeting message.

The host program (hih), loads the processor program (hi)
to the available processors. Then creates the share memory segment
and saves the pointer. Finally sends a greeting message to processor 0
of type 1, and waits for a message of type number of proecessors plus 1.
Once the message is received it displays the content of the share memory
segment.

The processor programs, waits for a message of any type. Once received
it attaches the shere memory segment and updates an area of index equal
to the processor number with the processor number. Finally sends a message to
the next processor after incrementing the previous type received in 1.
If the processor is the last it send it to the host.
