MultiProcessor and Win32 threads

Mark Hammond mhammond at skippinet.com.au
Fri Dec 17 22:41:01 EST 1999


"José Manuel Esteve Gómez" <jose.manuel.esteve at xps.xerox.com> wrote in
message news:83droq$ocp$1 at news.wrc.xerox.com...
> I have been trying to find some info in the thread interest group , but
the
> only hint is that threading in Python depends o n a central lock, and
seems
> to be a patch for Python 1.4 but no patch for Python 1.52  to avoid this
> problem.

Correct.

> Is  win32 process threading dependant on this central lock ???

No - it just executes Python, which is dependant on it - ie, win32process
does nothing special with the lock, but it is enforced very deep in Python
itself.

> Is there in fact a central lock that prevents parallel processing on a
> multiprocessor NT environment ??
Yes.
> Is there any way to avoid that ???
No :-(  [Apart from using multiple processes]

> On the other hand the function SetThreadIdealprocessor from win32process
> seems to be broken.

In what way?

Mark.






More information about the Python-list mailing list