Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upImplement java.util.concurrent.Semaphore and use it in IOThrottler #4102
Comments
Better implement AQS first? |
What's AQS? |
@gzm0 AbstractQueuedSynchronizer |
And why would we need this |
This is a follow-up to #4097 where we used an
AtomicInteger
as a poor-mans replacement for aSemaphore
withtryAcquire
(or maybe evendrainPermits
).