Threading Question

Erno Kuusela erno-news at erno.iki.fi
Fri May 4 04:05:43 EDT 2001


In article <3AF2343B.4A95E856 at nospmmytheworld.com>, David Lees
<debl at nospmmytheworld.com> 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