Class como.util.Semaphore
All Packages Class Hierarchy This Package Previous Next Index
Class como.util.Semaphore
java.lang.Object
|
+----como.util.Semaphore
- public class Semaphore
- extends Object
This class keeps a Hashtable (int)-(int). If get(a) is called,
it is blocked until (a) is contained in the Hashtable
If put is called, the argument is passed to all get()s that are waiting
ONLY ONE GET FOR EACH ID MAY BE RUNNING AT THE SAME TIME
-
Semaphore()
-
-
get(int)
-
-
put(int, int)
-
Semaphore
public Semaphore()
get
public synchronized int get(int id)
put
public synchronized void put(int id,
int data)
All Packages Class Hierarchy This Package Previous Next Index