Skip to content

Task-12

Muhammad Manzoor Asif requested to merge Task-12 into main

Multithreading

"1. Write a program in java that creates 3 Threads i.e Main, Thread1 and Thread2.

Print execution countdown messages for Thread 1 and Thread 2, also make Thread 1 and Thread 2 sleep for 1 second.

Finally Main thread should end it's execution after Thread2 and Thread1 finish their execution.

Limitations: You can not use the ""sleep()"" method for the ""main"" thread."

Edited by Muhammad Manzoor Asif

Merge request reports