Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

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