[Python-ideas] Concurrency Modules

Sven R. Kunze srkunze at mail.de
Fri Jul 10 22:57:51 CEST 2015

Seems like many people agree with the general idea of having a standard 
explanation and guideline of when to use which concurrency module. Nice!

On the difference of threads and processes; it is an interesting topic 
(IMHO) but:

*1) both processes and threads are just means to an end*
2) I would like to interchange them when necessary/one appears to be 
better than another
3) I would like to use the *same API* for both (for the major use 
cases), and switch from threads to processes if necessary or the other 
way round

Regarding asyncio:

1) I do not know what its purposes really is COMPARED to all the other 
modules; that really needs clarification first before anything else
2) sometimes, I get the feeling people understand it as a third way to 
do concurrency (along with processes and threads) but then Guido and 
others tell me it makes no sense to use asyncio for stuff that can be 
done with threading or multiprocesses

Let us see where these questions lead us.

(the following two weeks, I will not able to contribute thoughts here, 
as am on a tour; I am curious of what the guys of python-ideas will post 
here :) )


On 10.07.2015 04:09, Chris Angelico wrote:
> On Fri, Jul 10, 2015 at 8:53 AM, Sven R. Kunze <srkunze at mail.de> wrote:
>> After discussing the whole topic and reading it up further, it became clear
>> to me what's actually missing in Python. That is a definitive guide of
>> why/when a certain concurrency module is supposed to be used
> I'm not sure how easy the decisions will be in all cases, but
> certainly some broad guidelines would be awesome. (The exact analysis
> of "when should I use threads and when should I use processes" is a
> big enough one that there've been a few million blog posts on the
> subject, and I doubt that asyncio will shrink that.) A basic summary
> would be hugely helpful. "Here's four similar modules, and why they
> all exist in the standard library."
> ChrisA
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20150710/5459ee3c/attachment.html>

More information about the Python-ideas mailing list