Professional Documents
Culture Documents
Name:-suyash telang
Roll no:32
System.out.println("Process 1 is executing...");
try {
Thread.sleep(2000);
System.out.println("Process 1 is done.");
System.out.println("Process 2 is executing...");
try {
Thread.sleep(3000);
System.out.println("Process 2 is done.");
process1.start();
process2.start();
Output: