subject

1. The bakery algorithm allows two processes to pick the same value for turn. Yet, it does not create a conflict for mutual exclusion. How is this situation resolved?

2. Consider the three states a process can assume: running, ready, and blocked. A process is currently scheduled to run. There is a hardware interrupt raised. What will be the state transition for the process?

3. The the following code to creates a child to do something and return. The return value is to be caught by the parent. Can you see any problem with the code that I wrote? How will you fix it?

pid_t pid = fork();

if ( pid < 0 )

exit ( 1 );

if ( pid == 0 )

wait();

exit ( 0 );

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 20:50
What is the difference between windows 7 and windows 10?
Answers: 1
question
Computers and Technology, 23.06.2019 07:00
You need a quick answer from a coworker. the most effective way to reach your coworker is through a. cloud server b. instant message c. teleconference d. telepresence
Answers: 1
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 22:00
What is a number system, and what is the total number of digits used in this system called? a number system is a system that uses different (options: a) numbers b) symbols c) codes d) digits e) alphabets) to represent different numbers. the total number of digits used in a number system is known as its (options: 1) processor 2) converter 3) radix 4) least significant digit 5) most significant digit)
Answers: 1
You know the right answer?
1. The bakery algorithm allows two processes to pick the same value for turn. Yet, it does not creat...
Questions
question
Computers and Technology, 25.01.2020 06:31
question
Mathematics, 25.01.2020 06:31
question
History, 25.01.2020 06:31
Questions on the website: 13722363