|
@@ -21,10 +21,10 @@ class Task extends Thread {
|
|
|
|
|
|
System.out.println( name + " is CRITICAL!");
|
|
|
Mutex.criticalSection(((Integer)id).toString());
|
|
|
+ System.out.println( name + " isn't critical anymore.");
|
|
|
|
|
|
critical.v(id);
|
|
|
|
|
|
- System.out.println( name + " isn't critical anymore.");
|
|
|
Mutex.nonCriticalSection();
|
|
|
}
|
|
|
}
|