Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 556 Bytes

File metadata and controls

19 lines (14 loc) · 556 Bytes

Video Overview

  • What is a dead lock?
    • 2 threads are stuck waiting for lock held by another thread
  • Simple ways to prevent dead lock?
    • Don't use multiple locks if possible
    • Use same order of lock/unlock (hard to remember)
      • Show this works with thread/sleep

Titles

  • Why Your Multithreaded C++ Code Randomly Stops Running (Deadlocks Explained)
  • The C++ Concurrency Mistake Every Developer Makes Eventually
  • What Happens When Two Threads Try to Lock the Same Mutex?
  • What is a Deadlock in C++?

References

  • ChatGPT and Gemini