¡@

Home 

python Programming Glossary: testdata

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

arr if c key count 1 return count if __name__ '__main__' testData abcabcs bsdfsdf gdfg dffdgdfg sdfsdfsd sdfdsfsdf # want to share.. # want to share it using shared memory toShare Array 'c' testData # this works print count_it toShare a pool Pool # RuntimeError.. lock False # fork pool Pool # can set data after fork testData abcabcs bsdfsdf gdfg dffdgdfg sdfsdfsd sdfdsfsdf if len testData..