I’m evaluating the use of Python for a new project and ran through some basic tutorials but am looking for some recommendations and resources for multithreaded development in Python? How does it compare to other languages?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’d recommend http://herbsutter.wordpress.com/ (scroll down to the efficient concurrency columns) for a really great overview of what multiprocessing is all about. Yes, that guy talks about concurrency in a C++ context, but most of it is applicable for any language.
If you mention concurrency and Python, a lot of people might yell out “global interpreter lock” and say Python can’t really do concurrency. That’s nonsense from the past. The Multiprocess module allows proper usage of multiple cores, with the nice benefit that it is really easy to split certain kinds of tasks over multiple machines as well as cores.
The multiprocessing module is fairly recent, and a consequence is that Python still has much unexplored potential in doing concurrency. But the bottom line is that Python has all the proper tools, from multiprocessing with its message passing and shared memory to green threads