public class SimpleSemaphore extends Object
Constructor and Description |
---|
SimpleSemaphore(int nPermits)
Constructor.
|
SimpleSemaphore(int nPermits,
boolean fair)
Constructor.
|
public SimpleSemaphore(int nPermits, boolean fair)
nPermits
- the number of permitsfair
- boolean indicating whether threads should be processed in a fair waypublic SimpleSemaphore(int nPermits)
nPermits
- the number of permitsCopyright © 2018. All rights reserved.