Randomness is not achievable with computers. It is an impossibility. A computer is just a bunch of algorithms, and if you take an algorithm and input the same exact variables into it you will get the same result every time. However, the variables that effect the algorithm that determines the amount of processor time each thread gets are so vast that it might as well be random.
With that, you won't be able to determine which thread is asking for input at the time you input a String. It may be that one thread gets to read 2 threads in a row, or it may skip over one of the threads.
+4
This website uses cookies to provide you with personalized service. By using this website, you agree to our use of cookies. If you require more details, please read our Terms and Policy.