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

Constructor Index

 o Semaphore()

Method Index

 o get(int)
 o put(int, int)

Constructors

 o Semaphore
  public Semaphore()

Methods

 o get
  public synchronized int get(int id)
 o put
  public synchronized void put(int id,
                               int data)

All Packages  Class Hierarchy  This Package  Previous  Next  Index