Beginner Threaded file reading access
Josiah Carlson
jcarlson at nospam.uci.edu
Sat Mar 27 02:02:12 EST 2004
> Multithreading will not help this sequence unless (A) you have multiple
> processors, or (B) the processing in bar() needs to wait for something. If
> bar() is CPU bound, you would get the same performance by just executing
> sequentially.
It is even worse than that. In windows, Python is really a single
process, and no amount of threading is going to let one instance of
Python use more than 100% of a single CPU. I'm not sure if this is also
the case with linux or OS X.
- Josiah
More information about the Python-list
mailing list