subject

Suppose threads A and B are attempting to lock at the same time. Assume that there is a single shared variable. Let the value of 0 mean that no object is in the CS. Assume that a value of 1 in this variable indicates that A is entering/is in the CS and a value of 2 in the same register indicates that B is entering/is in the CS. Assume that A and B both read the register, initially 0, and are about to update them. Suppose A updates the register to 1. What would be the result? A. A will enter the CS.
B. The two threads will deadlock.
C. B will wait for A to complete the execution of the CS.
D. B will eventually obliterate the value written by A.
E. The lock object will be in an inconsistent state.
F. Both A and B could be in the CS at the same time.

ansver
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 18:30, Svetakotok
Ineed on my history if anyone can check out the last few questions i posted and i will be posting !
Answers: 2
image
Computers and Technology, 23.06.2019 13:30, powellmj9216
Spoons are designed to be used for: spring hammering. applying body filler. identifying high and low spots. sanding highly formed areas.
Answers: 3
image
Computers and Technology, 23.06.2019 23:30, ayjahj
What can you prevent issues related to downloading content form the internet
Answers: 1
image
Computers and Technology, 24.06.2019 07:00, AnaiyaKirksey8
You are most likely to automatically encode information about
Answers: 1
You know the right answer?
Suppose threads A and B are attempting to lock at the same time. Assume that there is a single share...

Questions in other subjects:

Konu
History, 25.02.2021 20:20