|
@@ -1,8 +1,12 @@
|
|
|
|
|
|
class Main {
|
|
|
public static void main(String args[]){
|
|
|
- System.out.println("Hello Java");
|
|
|
- Task t1 = new Task("T1", 1);
|
|
|
+ System.out.println("Start thread lab");
|
|
|
+
|
|
|
+ // Create different mutex
|
|
|
+ Mutex mutD = new MutexTypeD();
|
|
|
+
|
|
|
+ Task t1 = new Task("T1", 1, mutD);
|
|
|
t1.describe();
|
|
|
}
|
|
|
}
|