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 solutionChapter 12 Solutions
EBK COMPUTER SYSTEMS
- Computer Networking: A Top-Down Approach (7th Edi...Computer EngineeringISBN:9780133594140Author:James Kurose, Keith RossPublisher:PEARSONComputer Organization and Design MIPS Edition, Fi...Computer EngineeringISBN:9780124077263Author:David A. Patterson, John L. HennessyPublisher:Elsevier ScienceNetwork+ Guide to Networks (MindTap Course List)Computer EngineeringISBN:9781337569330Author:Jill West, Tamara Dean, Jean AndrewsPublisher:Cengage Learning
- Concepts of Database ManagementComputer EngineeringISBN:9781337093422Author:Joy L. Starks, Philip J. Pratt, Mary Z. LastPublisher:Cengage LearningPrelude to ProgrammingComputer EngineeringISBN:9780133750423Author:VENIT, StewartPublisher:Pearson EducationSc Business Data Communications and Networking, T...Computer EngineeringISBN:9781119368830Author:FITZGERALDPublisher:WILEY