1.concurrent.futureとは? concurrent.futures は Python の標準ライブラリで、並行処理を簡単に実行できるように設計されています。ThreadPoolExecutor と ProcessPoolExecutor の2つのエグゼキュータがあり、それぞれスレッドベースの並行処理とプロセスベースの並行処理を ...
福田 (@JunyaFff) です。2026年3月の 「Python Monthly Topics」 では、Python 3. 14で追加されたInterpreterPoolExecutorを紹介します。InterpreterPoolExecutorはconcurrent.
ThreadPoolExecutorで並列化を行う場合、mapとsubmitの二つの方法がある。 mapでは、for loopなしに、多数のthreadにtaskを投げられる。故に、タスク関数の引数はlist形式で、thread毎に違う引数で同じ関数を行わせたい場合に使える。 一方、submitは非同期で実行され、task ...