471,123 Members | 893 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,123 software developers and data experts.

Threading in Python

Python is praised about - me too. But at one instance it fails. It fails to
behave as a true multi-threaded application. That means utilizing all the
CPUs parallely in the SMP efficiently stays as a dream for a Python
Programmer.

Discussion threads say its due to GIL - global interpreter lock. But nobody
has mentioned any alternative to that apart from suggestions like "Code it
in C" and POSH (http://poshmodule.sf.net). Is there any other way we can
make Python programs really multithreaded in real sense.

Moin

Feb 7 '07 #1
3 1018
On Feb 7, 11:14 am, "S.Mohideen" <m...@blackhole.labs.rootshell.ws>
wrote:
Python is praised about - me too. But at one instance it fails. It fails to
behave as a true multi-threaded application. That means utilizing all the
CPUs parallely in the SMP efficiently stays as a dream for a Python
Programmer.

Discussion threads say its due to GIL - global interpreter lock. But nobody
has mentioned any alternative to that apart from suggestions like "Code it
in C" and POSH (http://poshmodule.sf.net). Is there any other way we can
make Python programs really multithreaded in real sense.

Moin
There are two ways. You can use processes, or you can use IronPython.

Cheers,
-T

Feb 7 '07 #2
On Feb 7, 12:36 pm, "tleeuwenb...@gmail.com" <tleeuwenb...@gmail.com>
wrote:
There are two ways. You can use processes, or you can use IronPython.
Or you could try Parallel Python: http://www.parallelpython.com/

"a python module which provides mechanism for parallel execution of
python code on SMP and clusters"

- alex23

Feb 8 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

65 posts views Thread by Anthony_Barker | last post: by
19 posts views Thread by Jane Austine | last post: by
4 posts views Thread by Joe Wong | last post: by
reply views Thread by Jacek Trzmiel | last post: by
13 posts views Thread by Varun | last post: by
3 posts views Thread by David Harrison | last post: by
9 posts views Thread by cgwalters | last post: by
14 posts views Thread by Akihiro KAYAMA | last post: by
reply views Thread by Edwin.Madari | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.