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