Question: task body T1 is begin loop B1 := True; loop exit when not B2; B1 = False; B1 := True; end loop; Critical Section;
task body T1 is begin loop B1 := True; loop exit when not B2; B1 = False; B1 := True; end loop; Critical Section; B1 = False; Non-Critical Section; end loop; end T1; task body T2 is begin loop B2 := True; loop exit when not B1; B2 := False; B2 = True; end loop; Critical Section; B2 := False; Non-Critical Section; end loop; end T2; Ada
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
