Mutex vs. Semaphore: How to implement them | Hacker News Reader