Q:

Write name of the most common places to look for a Deadlock in C#

0

Write name of the most common places to look for a Deadlock in C#

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

For recognizing deadlocks, one should look for threads that get stuck on one of the following:

  • .Result, .GetAwaiter().GetResult(), WaitAll(), and WaitAny() (When working with Tasks).
  • Dispatcher.Invoke() (When working in WPF).
  • Join() (When working with Threads).
  • lock statements (In all cases).
  • WaitOne() methods (When working with.
  • AutoResetEvent/EventWaitHandle/Mutex/Semaphore)

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now