processes and threading - count--threads=count the number of threads to use ( [default - --verbose - --debug make sure you try running the program with the debug flag set so that you can check that the threads are started up and that each one does its share of the work solution is provided in xmlsummary pywhich is slightly more than lines and uses no explicit locks