No subject

marcinmltd marcinmltd at gmail.com
Thu Dec 12 09:06:40 CET 2013


Hello,

I'm big fan of multiprocessing module, but recently I started looking at threading in Python more closely and got couple of questions I hope You can help me with:

1. When I run two or more threads in my python process are they really run concurrently on mulicore machine?

2. Browsing through documentation it looks like python interpreter protects its sensitive states by using GIL. Can you guys list situations when this happens?

2. What would be general advice from python experts on when to use threadng and when switch to multliprocessing in python? Is the decision still influenced by how often we need to comunicate between the tasks as it's in C\C++?

thanks in advance for help!
Marcin


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20131212/0662275c/attachment.html>


More information about the Python-list mailing list