0

hi,
for program to be concurrent i created 4 threads as below

 Thread th1 = new Thread(a1.run);
            Thread th2 = new Thread(b1.run);
            Thread th3 = new Thread(c1.run);
            Thread th4 = new Thread(d1.run );  

            th1.Start();
            th2.Start();
            th3.Start();
            th4.Start();

how do i know when the threads are finised done with the work, i print the th4 output to the consol panel and i know it is done with its work) but the program does not end

how do i end the threads?

appreciate a reply
thanks

3
Contributors
4
Replies
14
Views
5 Years
Discussion Span
Last Post by anisha.silva
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.