Loading...
Found 1 Skills
Subprocess and concurrency discipline for Python: how to run external programs safely, and how to pick the right concurrency model instead of the habitual one. Use when spawning processes with subprocess or asyncio subprocesses, writing threading or ThreadPoolExecutor code, using multiprocessing or ProcessPoolExecutor, sizing worker pools, bounding fan-out, or diagnosing deadlocks, hangs, orphaned children, and zombie processes. Covers argv vs shell, timeouts that kill the whole process tree, pipe deadlocks, start methods (spawn/forkserver/fork), pickling limits, GIL and free-threading, and cancellation. For event-loop and coroutine rules (TaskGroup, blocking calls, cancellation), use python-async-best-practices instead.