How does runs Python 2.x on Windows multi CPU machines?
Oct 28th, 2008 19:19
john Cena, raj sandia, Scott Mandarich, Reed O'Brien, Michael Chermside, Oliver Dissars,
[NOTE: This is being written by someone who doesn't own a Windows multi
CPU machine, so please correct me if I'm wrong!]
I believe the answer is that it will run, but not much faster than if
you had a single CPU machine. The reason is that the core of Python is
single-threaded -- there is a "global interpreter lock" which means the
interpreter is essentially single-threaded.
You might see slight improvement because certain C-level functions can
be performed without holding the global interpreter lock (eg: file IO),
but don't expect much.
Plone and Zope - discuss processor affinity.
and point to a discussion on python.org
Linux 2.6 kernel does soft (infrequent migration) and hard (no
In windows you can set processor affinity through the taskmgr. Select
the process, right click and select set Affinity. Select and click OK.