subject
Computers and Technology, 15.04.2020 20:45 gg68814

Fifteen processes share a critical section implemented by using a binary semaphore named x initialized to 1. Eleven of these processes use the correct code wait(x); critical section; signal(x). However, four processes erroneously use the code signal(x); critical section; signal(x). Assume that each process executes its critical section only once.) Answer the following questions. Calculate the maximum number of processes that can be in the critical section at the same time, and explain your answer. Does your answer change if x is a counting semaphore? Explain.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 18:10
How can i delete permalinks from a word press site?
Answers: 1
question
Computers and Technology, 23.06.2019 03:10
Fill in the following program so that it will correctly calculate the price of the orange juice the user is buying based on the buy one get one sale.#include //main functionint main() { int cartons; float price, total; //prompt user for input information printf("what is the cost of one container of oj in dollars? \n"); scanf(" [ select ] ["%d", "%c", "%f", "%lf"] ", & price); printf("how many containers are you buying? \n"); scanf(" [ select ] ["%d", "%c", "%f", "%lf"] ", & cartons); if ( [ select ] ["cartons / 2", "cartons % 1", "cartons % 2", "cartons % price", "cartons / price", "cartons / total"] [ select ] ["=", "==", "! =", "< =", "> =", "< "] 0) total = [ select ] ["price * cartons", "cartons * price / 2 + price", "(cartons / 2) * price", "cartons / (2.0 * price)", "(cartons / 2.0) * price + price", "((cartons / 2) * price) + price"] ; else total = ((cartons / 2) * price) + price; printf("the total cost is $%.2f.\n", total); return 0; }
Answers: 2
question
Computers and Technology, 23.06.2019 07:00
What are three software programs for mobile computing?
Answers: 1
question
Computers and Technology, 23.06.2019 12:30
Animations and transitions are added from the
Answers: 1
You know the right answer?
Fifteen processes share a critical section implemented by using a binary semaphore named x initializ...
Questions
question
Mathematics, 26.10.2021 06:20
question
Social Studies, 26.10.2021 06:20
question
Mathematics, 26.10.2021 06:20
question
English, 26.10.2021 06:20