retagged by
1,112 views
1 votes
1 votes
Why the value of D is 80 in concurrent process question and not 0? The question didn't mention that each statement take 3 instruction to execute so why assume that?
retagged by

2 Answers

0 votes
0 votes

I think the answer is 0.

They said that the three processes are run on an uniprocessor system. Which means, the instructions are run one after the other in sequential order. Also, no process reads the value before executing the instruction. Which means, "variable is read and updated in the same instruction".

Related questions

2 votes
2 votes
3 answers
3