Skip to content

wuhao4u/python-playground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Followed example from the original link: https://chriskiehl.com/article/parallelism-in-one-line

for multi-processing, CPU heavy tasks, use from multiprocessing import Pool

for multi-threading, IO heavy tasks, use from multiprocessing.dummy import Pool as ThreadPool

default thread number is the number of cores on the running machine pool = ThreadPool() pool = ThreadPool(4)

Releases

No releases published

Packages

No packages published

Languages