|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object Global
class Global
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 |
---|
public static final int N_Activities
public static final int ManyBobs
public static Semaphore[] barrier
public static int remain
public static Semaphore mutex
static Semaphore reduce
Constructor Detail |
---|
Global()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |