Question: 5. Different synchronization methods have advantages and disadvantages. In the following scenarios, describe which is a more suitable synchronization method, spinlock or semaphore. Explain the
5. Different synchronization methods have advantages and disadvantages. In the following scenarios, describe which is a more suitable synchronization method, spinlock or semaphore. Explain the reason for your choice and why the other is not chosen. ( 2 points) a. Increment and decrement a shared 16-bit counter in memory. b. Write a message to the log file and use fsync to wait for the data written to a magnetic disk
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
