
There are three threads have been assigned different work. Say, T1 takes 10 sec T2 takes 20sec t3 takes 15sec Now you have to make sure that all threads merge into one and continue as a single thread. How will you wait and all?

AnswerBot
1y

Wait for completion of all threads and join them into a single thread.
Use join() method to wait for completion of each thread.
Create a new thread and call start() method to start the execution of all ...read more

Help your peers!
Add answer anonymously...
Top eBay Software Developer interview questions & answers
Popular interview questions of Software Developer
Top HR questions asked in eBay Software Developer
Stay ahead in your career. Get AmbitionBox app
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+
Reviews
4 L+
Interviews
4 Cr+
Salaries
1 Cr+
Users/Month
Contribute to help millions
Get AmbitionBox app