Newbie queue question

Tim Harig usernet at ilthio.net
Fri Jun 19 04:35:18 EDT 2009


On 2009-06-19, =?windows-1252?Q?Jure_Erzno=9Enik?= <jure.erznoznik at gmail.com> wrote:
> If this is correct, no amount of threading would ever help in Python
> since only one core / CPU could *by design* ever be utilized. Except
> for the code that accesses *no* functions / memory at all.

Don't multithread...multiprocess.  By running multiple python instances,
the operating system handles the processor scheduling for each so that you
can use all available CPUs/cores.  It also tends to make debugging easier.
It does create more overhead -- significantly more on some OSs.



More information about the Python-list mailing list