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, 23.06.2019 07:50
Most shops require the technician to enter a starting and ending time on the repair order to track the actual time the vehicle was in the shop and closed out by the office. this time is referred to as _ time ? a. comeback b. ro c. cycle d. lead
Answers: 1
question
Computers and Technology, 23.06.2019 10:30
Would a ps4 wired controller work on an xbox one
Answers: 1
question
Computers and Technology, 24.06.2019 12:30
Select all that apply. what two keys listed below should you use to enter data in an excel worksheet? tab backspace enter right arrow
Answers: 2
question
Computers and Technology, 24.06.2019 15:30
How do i change the size of my bookmarks in my bookmarks bar in google chrome? ? plz hlp me
Answers: 2
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
Mathematics, 29.01.2020 04:42
question
Mathematics, 29.01.2020 04:42
question
Mathematics, 29.01.2020 04:42
question
Chemistry, 29.01.2020 04:42
Questions on the website: 13722362