© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2024
D. VostokovPython Debugging for AI, Machine Learning, and Cloud Computinghttps://doi.org/10.1007/978-1-4842-9745-2_12

12. Case Study: Deadlock

Dmitry Vostokov1  
(1)
Dalkey, Dublin, Ireland
 

In the previous chapter, you looked at resource leaks. In this chapter, you will diagnose and debug another common problem type, that of synchronization deadlocks, but you will use Linux as your operation system and GDB as a debugger. Some problem types do not require all debugging pattern layers; only some may be sufficient. For example, with postmortem debugging, sometimes the debugging analysis stage is sufficient.

Elementary Diagnostics

When you run the deadlock.py ...

Get Python Debugging for AI, Machine Learning, and Cloud Computing: A Pattern-Oriented Approach now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.