Question: Consider t he folowing PROMELA program code: byte critical = 1 ; bool formalSW = false; active proctype P ( ) { do :: printf
Consider t he folowing PROMELA program code:
byte critical ;
bool formalSW false;
active proctype P
do
:: printfNoncritical section P;
critical ;
printfCritical section P;
critical ;
od
active proctype Q
do
:: printfNoncritical section Q;
critical ;
formalSW true;
printfCritical section Q;
formalSW false;
critical ;
od
Define the mutual exclusion safety and liveness absence of
starvation properties for this program, and use SPIN to check if
the program satisfies these properties.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
