#include "stdio.h" #include "stdlib.h" #define N 50 /* N is the number of rounds */ #define B 250 /* B is the message size (1K) */ #define P 16 /* P is the number of players */ #define C 50 /* C indicates amount of computation */ #define M 50 /* M is the number of messages */ /* This is a random topology program. */ /* It sends M messages around N times among P entities. */ /* Adapted for Parsec v. 1.0 on 8-28-97 by Monnica Terwilliger */ /* Create global message types and declare entities */ message enemy {ename name;}; message bomb {int size[B];}; entity terrorist (int); /* Driver creates terrorist entities */ entity driver () { int id, my_id, bombs, target; ename Terrorist[P]; int bombarray[B]; for (id=0; id