how do I run os.walk in parallel in python?
<p>I'm new to python.</p>

<p>I wrote a simple app in java that takes a list of paths and generates a file with all the file paths unders that original list.</p>

<p>If I have paths.txt that has:</p>

<pre><code>c:\folder1\
c:\folder2\
...
...
c:\folder1000\
</code></pre>

<p>my app runs the recursive function on each path multithreaded, and returns a file with al the file paths under these folders.</p>

<p>No I want to write this app in python.
I've written a simple app that uses os.walk() to run through a given folder and print the filepaths to output.
Now I want to run it in parallel , and I've seen that python has some modules for this..</p>

<p>multithreaded and multiprocessing.</p>

<p>what is the best what to do this?
and whthin that way, how is it performed?</p>

<p>thanks.</p>
