This thread interview questions is mostly asked in first round or phone screening round of interview and purpose of this multi-threading question is to check whether candidate is familiar with concept of "join" method or not. Answer of this multi-threading questions is simple it can be achieved by using join method of Thread class.
main(){
main(){
t1.start();
t1.join();
t2.start();
t2.join();
t3.start();
}
No comments:
Post a Comment