guys if i just don't make both the threads to join. it will not display result. what actually is going on? well i passed the task because everthing was provided in requirement :\
This multithreading is going to be in my bad books..lol
Under discussion
Comments (1)
- Popular
- New
- Old
You must be signed in to leave a comment
Dave Shapiro
8 December 2020, 12:40
I think if you don't join the t2 thread, the main method starts that thread but proceeds straight to the printResult() method without waiting for the console input to the reader in t2's run method, i.e. prints a blank line.
0