Class Global

java.lang.Object
  extended by Global

 class Global
extends Object

Global structure to store global data.


Field Summary
static Semaphore[] barrier
          Use one semaphore for each activity.
static int ManyBobs
          Number of workers for each activity.
static Semaphore mutex
          Mutex to access global data stored in here.
static int N_Activities
          Total number of activities.
(package private) static Semaphore reduce
          Semaphore to signal the end of the Map face.
static int remain
          Number of Bobs that didnīt finish yet the current activity.
 
Constructor Summary
Global()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

N_Activities

public static final int N_Activities
Total number of activities.

See Also:
Constant Field Values

ManyBobs

public static final int ManyBobs
Number of workers for each activity.

See Also:
Constant Field Values

barrier

public static Semaphore[] barrier
Use one semaphore for each activity.


remain

public static int remain
Number of Bobs that didnīt finish yet the current activity.


mutex

public static Semaphore mutex
Mutex to access global data stored in here.


reduce

static Semaphore reduce
Semaphore to signal the end of the Map face.

Constructor Detail

Global

Global()