Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pool does not print process id

import multiprocessing

def f(x):
    print multiprocessing.current_process()
    return x * x

p = multiprocessing.Pool()
print p.map(f, range(6))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pool #print #process #id
ADD COMMENT
Topic
Name
1+7 =