subject

Assume the binary variable lock is initialized to be 0, which of the following can be an implementation of the entry section to solve the critical-section problem? Select one:
a. none of the other answers
b. both A and B
c. while (test and set(&lock)), do nothing;
d. while (compare and swap(&lock, 0, 1) != 0), do nothing;

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 02:50
Which of the following had the greatest influence on opening the internet to the generly public
Answers: 1
question
Computers and Technology, 22.06.2019 21:30
Elements such as fonts colors visual structure graphics and the interface of a web page should complement each other to ensure blank
Answers: 3
question
Computers and Technology, 23.06.2019 01:30
Negative methods of behavior correction include all but this: sarcasm verbal abuse setting an example for proper behavior humiliation
Answers: 1
question
Computers and Technology, 23.06.2019 21:30
Which of the following includes the three primary network access technologies? dsl, cable modem, broadband lan, wan, man voip, uc, iptv tcp/ip, ftp, dhcp
Answers: 2
You know the right answer?
Assume the binary variable lock is initialized to be 0, which of the following can be an implementat...
Questions
question
Social Studies, 26.07.2019 03:40
Questions on the website: 13722367