I have a basic Asp.Net application, to test a problem I want two instances of IE calling an asp.net page, I want the first to block (Thread.Sleep) and the second to proceed, hence I have code like this:
private static bool firstOne = true;
...
if (firstOne)
{
firstOne = false;
System.Threading.Thread.Sleep(10000);
}
What I'm actually seeing is both pages wait for the sleep to finish, it's as if there is a single thread servicing both.
NB I don't have the debugger attached nor any breakpoints
This is on my work pc, default machine.config and web.config. Nothing unusual has been configured.
This isn't something I normally have to do so i could easily be missing something obvious here
Any ideas?