1
マルチスレッドプロセス
p = ThreadPool(processes=10) # creates a pool of 10 workers
p.map(function_to_call, iterable) # calls FUNCTION_TO_CALL with the first item from iterable as parameter
p.close() # closes the multi-threaded processes one all threads done
私は、このモデルを使用しようとしてきたが、私にはパラメータはありません機能を通すために何をしたい場合。 run()と同じです。私は 'iterable'スペースに何を置くだろうか、私は周りを見てきましたし、解決策を見つけることができません。Python MultiProcessing.Pool:iterableを使用しないで使用するには?