Re: multiprocessing and Array problems

2012-04-12 Thread MRAB
On 12/04/2012 19:30, Al Niessner wrote: Here is an update. def subproc (i): print ("From subprocess " + str(i)) print (b[:]) return if __name__ == "__main__": nproc = 3 print ("\nBuilding the array for the second computation.") b = multiprocessing.Array (ctypes.c_

Re: multiprocessing and Array problems

2012-04-12 Thread Al Niessner
Here is an update. def subproc (i): print ("From subprocess " + str(i)) print (b[:]) return if __name__ == "__main__": nproc = 3 print ("\nBuilding the array for the second computation.") b = multiprocessing.Array (ctypes.c_double, nproc*nproc, lock=False) print ("\n