# | Line 419 | Line 419 | public class Semaphore implements java.i | |
---|---|---|
419 | * one of two things happens: | |
420 | * <ul> | |
421 | * <li>Some other thread invokes one of the {@link #release() release} | |
422 | < | * methods for this semaphore, and the current thread is next to be assigned |
422 | > | * methods for this semaphore, the current thread is next to be assigned |
423 | * permits and the number of available permits satisfies this request; or | |
424 | * <li>Some other thread {@linkplain Thread#interrupt interrupts} | |
425 | * the current thread. |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |