What is the difference between WaitOne and WaitAny?
I think create a volatile sorted list class level variable and assign the values in the each thread, once both of the threads are finished, iterate through the sorted list to print the outcome? Please correct me.
Here is the great explantion: https://stackoverflow.com/questions/14732425/eventwaithandle-difference-between-waitany-and-waitone