Mutex Semaphore

Creator
Creator
Seonglae ChoSeonglae Cho
Created
Created
2023 Nov 17 3:45
Editor
Edited
Edited
2023 Dec 20 2:24
Refs
Refs

Mutual Exclusion (Mutex)

A mutex semaphore is a specific use case of a
Binary semaphore
using Locking algorithm
Stricter and narrower use case (than binary semaphore)
Mutex(mutual exclusion) is object(variable) in process that prevent multi-thread access to data - use locking and unlocking
Mutex - self unlock
mutex is for two process - semaphore is for multi process use critical section
supervise only one resource
notion image
All Mutex is Semaphore, Semaphore can be mutex, not all mutexes are Semaphore
mutex is type variable and has function lock and unlock
lock(mutex), unlock(mutex)
 
 
 

Recommendations