class Main { static Mutex sharedMutex; public static void main(String args[]){ System.out.println("Start thread lab"); sharedMutex = new MutexTypeD(); runExperiment(); } private static void runExperiment() { Task t0 = new Task("T0", 0, sharedMutex); Task t1 = new Task("T1", 1, sharedMutex); t0.describe(); t1.describe(); t0.start(); t1.start(); } }