Making python developers awesome at concurrency. #python #threading #multiprocessing #asyncio

Joined October 2021
The website SuperFastPython.com has shut down. Why? I don't see the need for the books and tutorials, given the era of LLMs. RIP SuperFastPython.com, November 2021 to March 2026.
1
1
2
83
Tip: Use Python’s threading.Lock or multiprocessing.Lock to ensure only one thread or process accesses shared resources at a time, avoiding race conditions. #Python #Concurrency
29
Query the name of a running thread #Python #Concurrency
14
Tip: Monitor and log the behavior of concurrent Python tasks to detect unexpected state changes early, preventing potential livelocks. #Python #Concurrency
15
Create and start a thread with custom name #Python #Concurrency
14
Use multiprocessing.Pool for parallel pipeline stages #Python #Concurrency
12
Tip: Prefer using high-level concurrency tools like Condition variables, which provide better coordination and reduce the chance of livelocks. #Python #Concurrency
16
Questions and answers to 150+ interview questions on Python asyncio. Book: "Python Asyncio Interview Questions" superfastpython.com/python-a…
10
Use ThreadPoolExecutor for a two-stage pipeline pattern #Python #Concurrency
7
Tip: Design Python threads or tasks to release and reacquire locks intelligently, avoiding endless contention for shared resources. #Python #Concurrency
11
Use asyncio for an asynchronous pipeline pattern #Python #Concurrency
10
Tip: Use exponential backoff strategies in Python to incrementally increase wait times between retries, reducing livelock risk. #Python #Concurrency
13
Use multiprocessing for a multi-stage pipeline pattern #Python #Concurrency
7