0% found this document useful (0 votes)
7 views1 page

Semaphore

Uploaded by

zufishaali2003
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views1 page

Semaphore

Uploaded by

zufishaali2003
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

public class java.util.concurrent.Semaphore implements java.io.

Serializable {
public java.util.concurrent.Semaphore(int);
public java.util.concurrent.Semaphore(int, boolean);
public void acquire() throws java.lang.InterruptedException;
public void acquireUninterruptibly();
public boolean tryAcquire();
public boolean tryAcquire(long, java.util.concurrent.TimeUnit) throws
java.lang.InterruptedException;
public void release();
public void acquire(int) throws java.lang.InterruptedException;
public void acquireUninterruptibly(int);
public boolean tryAcquire(int);
public boolean tryAcquire(int, long, java.util.concurrent.TimeUnit) throws
java.lang.InterruptedException;
public void release(int);
public int availablePermits();
public int drainPermits();
protected void reducePermits(int);
public boolean isFair();
public final boolean hasQueuedThreads();
public final int getQueueLength();
protected java.util.Collection<java.lang.Thread> getQueuedThreads();
public java.lang.String toString();
}

You might also like