// Process 1 // Process 2 init1; init2; while(true) { while(true) { c1 = 0; // entry protocol c2 = 0; // entry protocol while (c2 == 0) {}; while (c1 == 0) {}; crit1; crit2; c1 = 1; // exit protocol c2 = 1; // exit protocol rem1; rem2; } } // Shared variables boolean c1 = 1, c2 = 1;
We need to show that P1 in crit1 implies that P2 is not in crit2 (and vice versa).
This file is maintained by Brian Logan Last modified: 2-Apr-2014, 13:59