¡@

Home 

python Programming Glossary: count_it

How to combine Pool.map with Array (shared memory) in Python multiprocessing?

http://stackoverflow.com/questions/1675766/how-to-combine-pool-map-with-array-shared-memory-in-python-multiprocessing

import stdin from multiprocessing import Pool Array def count_it arr key count 0 for c in arr if c key count 1 return count if.. memory toShare Array 'c' testData # this works print count_it toShare a pool Pool # RuntimeError here print pool.map count_it.. toShare a pool Pool # RuntimeError here print pool.map count_it toShare key for key in a b s d Can anyone tell me what I am..