Please once go through following link:https://msdn.microsoft.com/en-us/library/ms810303.aspx
http://stackoverflow.com/questions/15361810/how-to-find-out-deadlock-and-prevent-it-in-c-sharp