Python Coroutine AsyncioOctober 27, 2021·1102 字·3 分鐘在出現 asyncio 前, 當一隻 Python 程式有很多需要並行執行的 task, 想要提升程式效能, 只能選用 multiprocessing 或 threading; Python 3.4 之後又多出了 asyncio 的選擇。 asyncio 可以用來撰寫 coroutines, 並使用 event loop 並行執行 coroutines, 減少程式不必要的等待時間以提升效能。
Difference between Concurrent Processing and Parallel ProcessingDecember 25, 2019·319 字·1 分鐘Concurrent Processing 和 Parallel Processing 指的都是 CPU 在 一段時間內執行多個 process, 但兩者在概念上有些差異; 根據 The Art of Concurrency , Concurrent 指的是