選擇

if io_bound:
    if io_very_slow:
        print("Use Asyncio")
    else:
        print("Use Threads")
else:
    print("Multi Processing")

名詞介紹

進程

  1. 運行中的程序稱之
  2. 狀態
  3. 控制結構

線程