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....
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. [4x5-20ptsl (a) True or false: Peterson's algorithm for mutual exclusion offers bounded wait. b) Thue or falher Cumsider a concumcent program comitingof several 1oad indctioms e instructions (or instructions with similar effects as store). Such a program can never have any race conditions (c) True or false: Solutions based on busy waiing (e.g., mutex/spin locks) are always better than those based on suspending threads/processes that can not proceed past their entry sections (d) Consider a producer-consumer problem with a shared buffer of size 10. Consider a correct solution based on mutex locks. Pick a single answer corresponding to the strongest liveness condition asso- ciated with this program i) depends on the liveness conditions offered by the implementation of the mutex locks, ii) no deadlock,ii) no starvation, (iv) bounded wait.
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. [4x5-20ptsl (a) True or false: Peterson's algorithm for mutual exclusion offers bounded wait. b) Thue or falher Cumsider a concumcent program comitingof several 1oad indctioms e instructions (or instructions with similar effects as store). Such a program can never have any race conditions (c) True or false: Solutions based on busy waiing (e.g., mutex/spin locks) are always better than those based on suspending threads/processes that can not proceed past their entry sections (d) Consider a producer-consumer problem with a shared buffer of size 10. Consider a correct solution based on mutex locks. Pick a single answer corresponding to the strongest liveness condition asso- ciated with this program i) depends on the liveness conditions offered by the implementation of the mutex locks, ii) no deadlock,ii) no starvation, (iv) bounded wait.