Question: 7 . The following shows two processes sharing a common variable ( X ) . Before the two processes are executed, X is
The following shows two processes sharing a common variable X
Before the two processes are executed, X is and the statements described for each process are executed sequentially, and there is no assumption about the execution order of processes A and B points
When the two processes are completed, write down the execution order of the processes the execution order of mathrmAmathrm~Amathrm~Bmathrm~B and all possible values that the variable X can have.
If the following binary semaphore variable S is used, and before two processes are executed, S is and X is write down all the execution orders of the processes and the possible values that the variable X can have when the two processes are finished executing.
text text
If a binary semaphore variable T is used as follows, and before two processes are executed, T is and X is write down all the execution order of the processes and the possible values that the variable X can have.
Process
int Y;
A:Y X;
A:X Y
A:SemSignalT;
Process
int Z;
B:SemWaitT;
B:Z X;
B:X Z;
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
