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없이 사용하는 방법? 내가 매개 변수가없는 함수를 스레드하려는 경우