-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
19/20 Sem2 Q5 #405
Comments
Yeah I think so. If I'm not wrong |
yes all the answers have to start with a 1 |
.join() waits for 1 to be completed and prints 1 out first. Since there is no .join() on 2,3,4, they might not be completed and printed out. If they are printed, 4 has to be after 2 or 3. The order of 2 and 3 does not matter. |
So what should the answer for this qn be? (a), (e), (i), (j), (n)? |
Fyi this problem has been discussed on #333 |
I think the answer for this should be (a), (e) and (n). Options (i) and (j) are not possible because |
Yeap agreed. In this case, 1 is definitely printed. However, 2 or 3 or both could be printed after 1. If 4 is printed, then both 2 and 3 (in any order) has to be printed. Hence, the output should be (a), (e) and (n) |
Hi! I agree with the others that the method .join() waits for the internal process to complete its execution before allowing any other programs to continue on. Therefore, it is a guarantee that 1 will come out first and the answer is A E I J N. |
I and J are not possible. For 4 to complete, both 2 and 3 has to complete first. |
since 1 has a .join(), 1 will definetly be exeuted and completed first -> 1 will surely bet he first output |
I think 1 is guaranteed to be printed out because of join(), but does join() also guarantee that 1 will be printed out before the other numbers are printed out? If yes/ no then why
The text was updated successfully, but these errors were encountered: