Debugging Multithreaded C++ and C Programs with GDB and Pthreads - GDB Tutorial

Debugging Multithreaded C++ and C Programs with GDB and Pthreads - GDB Tutorial

Undo via YouTube Direct link

00:00 - Intro: Why Multithreaded Debugging is Hard

1 of 15

1 of 15

00:00 - Intro: Why Multithreaded Debugging is Hard

Class Central Classrooms beta

YouTube videos curated by Class Central.

Classroom Contents

Debugging Multithreaded C++ and C Programs with GDB and Pthreads - GDB Tutorial

Automatically move to the next video in the Classroom when playback concludes

  1. 1 00:00 - Intro: Why Multithreaded Debugging is Hard
  2. 2 00:35 - Launching the C++ Demo Program
  3. 3 01:25 - Using GDB: Listing and Identifying Threads
  4. 4 02:10 - Switching Threads and Inspecting Backtraces
  5. 5 03:05 - Naming Threads with pthread_setname_np
  6. 6 04:00 - Enabling Scheduler Locking in GDB
  7. 7 04:45 - Understanding Thread Scheduling Behavior
  8. 8 05:30 - Controlling Execution with GDB Commands
  9. 9 06:25 - Diagnosing Deadlocks and Blocking Threads
  10. 10 07:15 - Inspecting Internal Locks and Shared Memory
  11. 11 08:10 - Handling Signals and SIGINT
  12. 12 09:00 - Debugging Spinners and Race Conditions
  13. 13 10:00 - Cleanly Finishing Thread Execution in GDB
  14. 14 11:00 - Recap: Thread Debugging Best Practices
  15. 15 11:45 - Outro: What to Try Next with GDB

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.