Question

1. True-false or multiple choice. Provide a one-sentence explanation you will get no credit for a correct answer without a pr

0 0
Add a comment Improve this question Transcribed image text
Answer #1

a. True because using turn variable in Perterson algorithm ensures that there is an order in which process will be allowed to enter into critical section if multiple process are trying to enter critical section. Hence bounded wait is maintained.

b. True as long as there are only load instructions means that shared data will be used for Read purpose only and hence no race condition.

c. False because busy waiting solution unnecessary makes the process wait for the resource and waste the CPU cycle allocated to process. Hence suspending process till the time resource is not available is better alternative .

d. Answer i is correct. It depends on liveness condition offered by implementation in mutex locks because deadlock, starvation and unbounded can happen even in producer consumer problem with any finite size buffer.

Please comment for any clarification.

Add a comment
Know the answer?
Add Answer to:
1. True-false or multiple choice. Provide a one-sentence explanation you will get no credit for a correct answer without a proper explanation. Suggested time to spend on these questions: 10 minutes....
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT