Sunday, February 17, 2013

Python multiple thread processing


from multiprocessing import Pool
pool = Pool(processes=5)
pages = pool.map(visit, get_lines(file))

No comments:

Post a Comment