Python threads: backed by OS threads?

Courageous jkraska1 at san.rr.com
Thu May 11 02:49:42 EDT 2000


> > To wit: if I create multiple Python threads on a
> > machine with multiple CPUs, I should be expecting
> > take advantage of the additional CPU's, correct?
> 
> no.
> 
> for more info, see:
> http://www.python.org/doc/current/api/threads.html

I just read that. It suggests that the threads may
be mutually locking eachother out some of the time,
but it does not say that they will not see a performance
gain once you discount the contention issues.

In particular, the brief discussion might suggest to
this otherwise naive reader that if the threads were
operating in relative mutual exclusion to eachother and
objects which, once divided between them, were non-
co-referencial, here might not be as much contention
for python locking structures as the document mentions.

???


C/



More information about the Python-list mailing list