[Python-ideas] Concurrency Modules

Ian Lee ianlee1521 at gmail.com
Fri Jul 10 03:06:34 CEST 2015


On Thursday, July 9, 2015, Sven R. Kunze <srkunze at mail.de> wrote:

> Hi,
>
> that's a follow up on the discussion started on python-dev ('The
> importance of the async keyword') and this issue
> http://bugs.python.org/issue24571 .
>
> 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:
>
> Currently, I can name 4 modules of which I know that they more or less
> deal with the topic:
>  - concurrent
>  - threading
>  - asyncio
>  - multiprocessing
>
> In order to make a sound decision for the question: "Which one(s) do I
> use?", at least the following items should be somehow defined clearly for
> these modules:
>
> 1) relationship between the modules
> 2) NON-overlapping usage scenarios
> 3) future development intentions
> 4) ease of usage of the modules => future syntax
> 5) examples


+1 and also with regard specifically to the examples where there are
overlap between different modules, equivalent approaches to performing some
task.


>
>
> Remarks to the items:
>
> 1)
> For the basic understanding
> Do they complement each other?
> Differences in behavior?
> Do they overlap from the perspective of the programmer?
> They mostly do not care about internal details; they need to get things
> done (threads <-> processes) as long as the result is the same.
>
> 2) Extremely important to make the decision fast
>
> 3)
> Will asyncio incorporate all concepts of the other modules in a seamless
> way?
> Or are they just complementary?
>
> 4) Closely related to 3)
>
> 5) Maybe in close correlation with 2) and 1)
>
> Cheers,
> Chuck
> _______________________________________________
> 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/
>


-- 

~ Ian Lee | IanLee1521 at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20150709/7bf54923/attachment.html>


More information about the Python-ideas mailing list