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