01 / #concurrency · 2 posts
2024
-
· python · 9 min
Python Threading, Semaphores, and Barriers
Python threading, semaphores, and barriers explained with runnable code: limit concurrent workers, sync threads at a checkpoint, and avoid common pitfalls.
-
· python · 2 min
Python Deadlocks: Causes, Examples and How to Avoid Them
Python deadlocks explained with examples: circular wait, self-deadlock, and starvation, plus 7 ways to avoid them, from lock ordering to timeouts.