Python中由于全局锁(GIL)的限制无法使多线程在运算密集场景下发挥其威力,本文探讨一个通过多线程和多进程配合的方案来“突破”这种限制。
Because of the Global Interpreter Lock (GIL), Python's multi-threading is not an ideal choice in compute-intensive scenarios. This article explored a solution of cooperating multi-processing and multi-threading to break such restriction.