subject

The first known correct software solution to the critical-section problem for two
processes was developed by Dekker. The two processes, P0 and P1, share the
following variables:
boolean flag[2]; /* initially false */
int turn;
The structure of process Pi (i == 0 or 1). The other process is Pj (j == 1 or 0).
Prove that the algorithm satisfies all three requirements for the critical-section
problem.

Q2)
Write a pseudo code to solve the reader writer problem using semaphore?
I want the second question

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 09:30
You wanted to look up information about alzheimer's, but you were unsure if it was spelled "alsheimer's" or "alzheimer's." which advanced search strategy would be useful? a) a boolean search b) using a wild card in your search c) trying different search engines d) doing a search for "alsheimer's not alzheimer's" asap. ill give brainlist.
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
question
Computers and Technology, 23.06.2019 22:20
Read “suburban homes construction project” at the end of chapters 8 and 9 (in the textbook) and then develop a wbs (work breakdown structure) in microsoft excel or in microsoft word (using tables)
Answers: 1
question
Computers and Technology, 24.06.2019 02:10
Which sentences describe the things you need to ensure while creating a sketch and a drawing? while an artistic or creative drawing is a creative expression, a technical drawing is an informative expression. you need to create accurate and neat drawings to convey accurate information. a technical drawing clearly conveys its meaning or information, and does not leave room for interpretation maintain a good speed while creating drawings
Answers: 1
You know the right answer?
The first known correct software solution to the critical-section problem for two
processes wa...
Questions
question
Mathematics, 22.04.2021 23:30
question
History, 22.04.2021 23:30
question
Chemistry, 22.04.2021 23:30
question
Mathematics, 22.04.2021 23:30
question
Mathematics, 22.04.2021 23:30
question
Business, 22.04.2021 23:30