// Toy program to test race conditions in CSIM - version 2 using inspectors #include #include "cpp.h" #include using namespace std; #define TINY 1.e-20 // a very small time period facility_set podium ("podium",2); // Where you can speak your mind double podium_done[2]; // Holds promised release time by current speaker void hiho(int); // process declarations string whoami[5] = {"Hi ", "Ho ", "Hum", "Foo", "Bar"}; // their names extern "C" void sim(int argc, char* argv[]) // main process { int players; create("sim"); if (argc>1) players = atoi(argv[1]); else players = 2; cout << "Number of players is " << players << endl; for(int i=0;i