g Assume that a system has one processing core. Describe which is a better locking mechanism—a spinlock or a semaphore for the following scenarios and explain the reason for your choice and why the other choice is not appropriate. (2 points) a. Increment and decrement two shared in-memory counters b. Print a message to the shared log file and wait for it is written to disk

Solved
Show answers

Ask an AI advisor a question