private static readonly object _accessLock = new object();
private void doStuff()
{
lock (_accessLock)
{
//code
}
}
I am trying to debug a problem where 'doStuff' method is blocking several threads. This function is running as part of web application which is hosted on IIS.
In the context of IIS, is it possible that thread dies after acquiring the lock and rest of the threads can not acquire the lock?