Threading Question

Erno Kuusela erno-news at
Fri May 4 10:05:43 CEST 2001

In article <3AF2343B.4A95E856 at>, David Lees
<debl at> writes:

| I am struggling to improve the performance of some python code that has
| 2 threads and runs on a dual processor linux (redhat 7.0) box.  I am
| using Python 2.1 and can not seem to get the cpu utilization up above
| 40% for each processor.

python has a single global interpreter lock, so python code cannot
benefit from multiple cpus. google has more information
if you desire it.

if someone with access to the faq wizard is listening, this should
probably be added to the faq (i didn't see it there, at least).

  -- erno

More information about the Python-list mailing list