I am planning to convert the code using EventWaitHandle instead, but I want to understand the solution first and I have troubles understanding why they used "while (!signalSet)" instead of "if(!signalSet)". Is there a difference in that case? if yes, what is the difference and if no, is there any reason to write while?
I was under the impression, after reading this article that it is better to use Monitor/Lock for thread synchronisation as it does not use native resources Specific quote (from page 5 of the articl...