How is a Semaphore Different from a Mutex?

Question
You have read about primitives in distributed applications. How is a semaphore different from a mutex?

Solution
A semaphore allows different threads to write to a file whereas a mutex does not allow more than one thread to write to the file.

Leave a comment

Your email address will not be published. Required fields are marked *