1.

A method used to force one thread to wait for another thread to finish.(a) join()(b) connect()(c) combine()(d) concat()The question was posed to me in an internship interview.The doubt is from Multithreading topic in portion Operating Systems of Computer Fundamentals

Answer»

The CORRECT OPTION is (a) join()

Explanation: The answer is join(). We can use the join() method to FORCE one thread to WAIT for another thread to FINISH.



Discussion

No Comment Found

Related InterviewSolutions