Deadlock from hell
Thread 1:
lock (a)
{
lock (b)}
{lock (c)}
{
//some code
}
Thread 2:
lock (d)
{
lock (c)}
{lock (b)}
{
//some code
}
Main thread:
lock (a)
{
//important code
}
The Number One Visual Studio 2009 Weblog on the Web
Thread 1:
lock (a)
{
lock (b)}
{lock (c)}
{
//some code
}
lock (c)}
{lock (b)}
{
//some code
}
No comments:
Post a Comment