How can you avoid deadlock in threading?

Q

.NET INTERVIEW QUESTIONS - How can you avoid deadlock in threading?

✍: Guest

A
A good and careful planning can avoid deadlocks.There are so many ways Microsoft has provided by which you can reduce deadlocks example Monitor, Interlocked classes, Wait handles, Event raising from one thread to other thread, ThreadState property which you can poll and act accordingly etc.

2010-01-05, 7927👍, 0💬