
A.
Mutex:
A mutex delivers mutual exclusion to either producer or consumer may have the mutex (that is key) and continue with their works. The consumer need to wait until the producer fill the buffer and vice versa.
Semaphore:
A semaphore is the generalized mutex. It split the buffer into identical resources. The producer and the consumer may work on different buffers at the same time.
B.
Mutex:
A mutex delivers mutual exclusion to either producer or consumer may have the mutex (that is key) and continue with their works. The consumer needs to wait until the producer fill the buffer and vice versa.
Semaphore:
A semaphore is the generalized mutex. It split the buffer into identical resources. The producer and the consumer may work on different buffers at the same time.
C.
Mutex:
A mutex delivers mutual exclusion to either producer or consumer may have the mutex (that is key) and continue with their works. The consumer need to wait until the producer fill the buffer and vice versa.
Semaphore:
A semaphore is the generalized mutex. It split the buffer into identical resources. The producer and the consumer may work on different buffers at the same time.

Want to see the full answer?
Check out a sample textbook solution
Chapter 12 Solutions
Computer Systems: A Programmer's Perspective (3rd Edition)
- C++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology PtrOperations Research : Applications and AlgorithmsComputer ScienceISBN:9780534380588Author:Wayne L. WinstonPublisher:Brooks ColeSystems ArchitectureComputer ScienceISBN:9781305080195Author:Stephen D. BurdPublisher:Cengage Learning
- C++ Programming: From Problem Analysis to Program...Computer ScienceISBN:9781337102087Author:D. S. MalikPublisher:Cengage LearningNew Perspectives on HTML5, CSS3, and JavaScriptComputer ScienceISBN:9781305503922Author:Patrick M. CareyPublisher:Cengage LearningSystems Analysis and Design (Shelly Cashman Serie...Computer ScienceISBN:9781305494602Author:Scott Tilley, Harry J. RosenblattPublisher:Cengage Learning





