Mutex, Semaphore difference, Spinlocks
Utilisateur anonyme
Mutex(binary semaphore) allows to use resource to only one thread at a time while it put other process to sleep. It is used for asynchronous locking Semaphore(counting semaphore) allows group of thread to run simultaneously among other processes. It will put other thread on sleep. this is synchronous locking Spinlock allows one thread to run at a time without putting other threads on sleep .It is used for synchronous locking