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.