Skip to content

concurrent-collections

1 Post

Semaphore in Java: Permits, Leaks and Virtual Threads

A Java Semaphore is a counter with a wait queue, not a lock. Why release() can mint permits, how leaks starve a pool, and how to cap virtual threads safely.