Hi,
I have a logging code which needs to be executed after all threads are executed.
Thread t1 = new MyThread();
Thread t2 = new MyThread();
t1.run();
t2.run();
doLogging();
Is there any way to execute doLogging() only after both threads are done with their processing. Now that doLogging() is called as soon as t1, t2 are started.
Thanks, Shafi