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, 22.06.2019 13:00
Why the bear has a slunky tail determine the meaning of the word slunk in the story
Answers: 1
question
Computers and Technology, 22.06.2019 14:00
Which database model is best used for data warehouse and data mining
Answers: 3
question
Computers and Technology, 22.06.2019 22:30
Who needs to approve a change before it is initiated? (select two.) -change board -client or end user -ceo -personnel manager -project manager
Answers: 1
question
Computers and Technology, 22.06.2019 23:30
Which text format is this, "the text is transcribed exactly as it sounds and includes all the utterances of the speakers. "?
Answers: 2
You know the right answer?
The first known correct software solution to the critical-section problem for two
processes wa...
Questions
question
Advanced Placement (AP), 05.05.2020 22:59
question
Mathematics, 05.05.2020 22:59
question
History, 05.05.2020 22:59
Questions on the website: 13722362