I’ve been using CriticalSection.TryEnter all along since I can “control” the waiting time and even get out of a deadlock if it takes too long etc.
Now, for certain parts of my code a deadlock is not likely to happen (I actually designed it well, ) and I’ve been using CriticalSection.Enter instead.
My question is: How does the CriticalSection.Enter really works? Is it more/less efficient? Just a hidden loop on the TryEnter method? If it’s a loop, for how long does it sleep the calling thread?
Thanks for any input!