Based on an article by Noam Yadgar and extended to include the comprehensive tests.
- Mutex - short for "mutual exclusion," is a synchronization primitive used in computer programming to ensure that only one thread can access a shared resource or a critical section at a time. Mutexes help prevent race conditions and other concurrency-related issues in multithreaded applications (def by ChatGPT).
- Semaphore