Q1) There are three thread A,B,C. I want thread A to finish its execution after thread B and C completes.How to do it? Each time i am getting different output.
Q2) Is it possiable to make main thread die before thread A,B,C?
amolpalekar kadolkar wrote:Q1) There are three thread A,B,C. I want thread A to finish its execution after thread B and C completes.How to do it? Each time i am getting different output.
Pass those threads(in your case, thread A) to other thread's methods, and call join the thread A in you convenient way.
|BSc in Electronic Eng| |SCJP 6.0 91%| |SCWCD 5 92%|
She said she got a brazillian. I think owning people is wrong. That is how I learned ... tiny ad: