All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class replica.Semaphore

java.lang.Object
   |
   +----replica.Semaphore

public class Semaphore
extends Object
This class provides a binary semaphore.

Version:
1.0
Author:
Markus Jäger

Constructor Index

 o Semaphore()
Used to create a binary semaphore.

Method Index

 o P()
P operation of a binary semaphore.
 o V()
V operation of a binary semaphore.

Constructors

 o Semaphore
 public Semaphore()
Used to create a binary semaphore.

Methods

 o P
 public synchronized void P()
P operation of a binary semaphore.

 o V
 public synchronized void V()
V operation of a binary semaphore.


All Packages  Class Hierarchy  This Package  Previous  Next  Index