BACI System: C-- to PCODE Compiler in C, 11:30 1 Oct 2012 Source file: przyklad_monitora.cm Mon Dec 3 15:50:30 2018 line pc 1 0 monitor simple_monitor 2 0 { 3 0 void say_hello (char id) 4 1 { 5 1 cout << "Hi! I am a process!" << endl; 6 3 cout << "My ID is: " << id << endl; 7 7 cout << "Bye!" << endl; 8 9 } 9 11 } 10 12 11 12 void process_hello(char id) 12 12 { 13 12 say_hello(id); 14 16 } 15 17 16 17 main() 17 18 { 18 18 cobegin 19 19 { 20 19 process_hello('A'); process_hello('B'); process_hello('C'); 21 31 } 22 32 cout << "All processes finished" << endl; 23 34 }