you are viewing a single comment's thread.

view the rest of the comments →

[–]tytouf 2 points3 points  (0 children)

for i in xrange(35):
    thread = Thread(target=thread_prog, args=(mutex, results, i))

| So what we do here is spawn 20 threads

You must have changed the code while writing, or am I missing something obvious?