Tag Archives: concurrency

Under-appreciated Java Classes Part I: CompletionService

The beauty of Java’s CompletionService class and how it’s useful for managing a group of Futures in concurrent systems.

Extending Java’s Semaphore to Allow Dynamic Resizing

How to change the number of permits a Java Semaphore has after initialization by extending Semaphore to expose reducePermits(). Includes code.