Semaphore: Limited Access
While a Lock allows only ONE holder, a Semaphore allows up to N:
Learning Objectives
Lesson Outline
While a Lock allows only ONE holder, a Semaphore allows up to N:
| Lock | Semaphore |
|---|---|
| Max 1 holder | Max N holders |
| Binary (yes/no) | Counting (available slots) |
| Mutual exclusion | Resource limiting |