Threading Question
David Lees
Davidl at niospammyraqia.com
Fri May 4 09:11:50 EDT 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 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