Difference between MUTEX and Semaphore. Mutex: A mutex object allows only one thread among the threads concurrently executed, into a controlled section in a serialized fashion, forcing other threads to wait until the exiting of the first thread from that section.
Semaphore: The restriction of the number of simultaneous users of a shared resource is performed by a semaphore. Semaphore allows threads to request to the resource and signals the completion of using resources to threads.
|