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, 21.06.2019 13:30
Using the find and replace tool would be most appropriate when changing the company name when the same letter is sent to different companies. inserting a date field. suggesting alternate word choices with the same meaning. placing images alongside text.
Answers: 3
question
Computers and Technology, 24.06.2019 10:00
What did i do wrong with this const discord = require('discord.js'); var bot = new discord.client(); const token = 'ntm3mjcxmtu1mjg3ote2ntq2.dyogew.dpfiwfpuifzuzvifop-csuxasnm' const prefix = "! " bot.registry.registergroup('simple', 'simple'); bot.registry.registerdefaults(); bot.registry. + '/commands'); bot.on('message', message => { if(message.content == 'hi! ') { message.channel.send ('@everyone sup, how is @everyone day going'); } if(message.content == 'h3lp') { message.channel.send ('dose not have any commands yet'); } bot.on('ready', function() { console.log("ready") }); bot.login(token);
Answers: 1
question
Computers and Technology, 24.06.2019 11:20
Every telecommunication setup uses two devices: one device to transmit data and one device to receive data. which device transmits frequencies to mobile phones? towers transmit frequencies to mobile phones.
Answers: 1
question
Computers and Technology, 24.06.2019 12:30
Why does the pc send out a broadcast arp prior to sending the first ping request
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, 01.09.2019 20:00
question
History, 01.09.2019 20:00
question
History, 01.09.2019 20:00
question
Social Studies, 01.09.2019 20:00
question
Mathematics, 01.09.2019 20:00
Questions on the website: 13722359