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

This question has already been answered. Start a new discussion instead.