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

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 17:00
The most efficient way to establish top best possible economize position is to measure
Answers: 1
question
Computers and Technology, 21.06.2019 22:00
Business professionals of america, and future business leaders of america – phi beta lambda are both open to business students at which levels? check all that apply. elementary school middle school high school college
Answers: 1
question
Computers and Technology, 23.06.2019 13:30
Me ! evelyn is a manager in a retail unit. she wants to prepare a report on the projected profit for the next year. which function can she use? a. pmt b. round c. division d. what-if analysis
Answers: 2
question
Computers and Technology, 24.06.2019 03:30
Which explains extrinsic motivation? a)motivation in which there is a reward b)motivation that is personally satisfying c)motivation that is personally meaningful d)motivation in which the subject is interesting
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
question
Mathematics, 04.10.2020 05:01
question
Social Studies, 04.10.2020 05:01
question
English, 04.10.2020 05:01
question
Mathematics, 04.10.2020 05:01
Questions on the website: 13722363