Threaded for loop

John weekender_ny at
Sat Jan 13 21:15:44 CET 2007

I want to do something like this:

for i = 1 in range(0,N):
 for j = 1 in range(0,N):
   D[i][j] = calculate(i,j)

I would like to now do this using a fixed number of threads, say 10
What is the easiest way to do the "parfor" in python?

Thanks in advance for your help,

More information about the Python-list mailing list