I have a registration code that needs to be executed after all Threads .
Thread t1 = new MyThread(); Thread t2 = new MyThread(); t1.run(); t2.run(); doLogging();
Is there a way to doLogging() only after both threads have been processed. Now that doLogging() is called as soon as t1 and t2 begin.
java multithreading runnable
shafi
source share