Threading Question

David Lees Davidl at
Fri May 4 15:11:50 CEST 2001

The code I am actually working on is for handeling sockets.  I am pretty
careful and am passing things in a threadsafe manner between them.  Is
there any way I can release the lock without writing C code?

david lees

Erno Kuusela wrote:
> 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