Semaphore
Java · 3 notes
- Semaphorehistorical
Permit-based concurrency control with acquire/release, bounded resource access, optional fairness, and the distinction from rate limiting.
- Nonfair Semaphorehistorical
Default semaphore barging behavior, shared AQS permit state, and why nonfair acquisition often improves throughput.
- Fair Semaphorehistorical
AQS shared acquisition with predecessor-aware fairness and the throughput trade-off of ordered permit allocation.