123456789101112131415161718 |
- class Main {
- public static void main(String args[]){
- System.out.println("Start thread lab");
- // Create different mutex
- Mutex mutD = new MutexTypeD();
- Task t0 = new Task("T0", 0, mutD);
- Task t1 = new Task("T1", 1, mutD);
- t0.describe();
- t1.describe();
- t0.start();
- t1.start();
- }
- }
|