| Store | Cart

Re: [Python-ideas] Concurrency Modules

From: Nick Coghlan <ncog...@gmail.com>
Fri, 10 Jul 2015 17:18:22 +1000
On 10 July 2015 at 12:09, Chris Angelico <ros...@gmail.com> wrote:
> On Fri, Jul 10, 2015 at 8:53 AM, Sven R. Kunze <srku...@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."

Q: Why are there four different modules
A: Because they solve different problems
Q: What are those problems?
A: How long have you got?

Choosing an appropriate concurrency model for a problem is one of the
hardest tasks in software architecture design. The only way to make it
appear simple is to focus in on a specific class of problems where
there *is* a single clearly superior answer for that problem domain :)

That said, I think there may be a way to make the boundary between
synchronous and asynchronous execution easier to conceptualise, so
I'll put up a thread about that.

Cheers,
Nick.

-- 
Nick Coghlan   |   ncog...@gmail.com   |   Brisbane, Australia
_______________________________________________
Python-ideas mailing list
Pyth...@python.org
https://mail.python.org/mailman/listinfo/python-ideas
Code of Conduct: http://python.org/psf/codeofconduct/

Recent Messages in this Thread
Sven R. Kunze Jul 09, 2015 10:53 pm
Giampaolo Rodola Jul 09, 2015 11:51 pm
Terry Reedy Jul 10, 2015 02:01 am
Ian Lee Jul 10, 2015 01:06 am
Chris Angelico Jul 10, 2015 02:09 am
Nick Coghlan Jul 10, 2015 07:18 am
Sven R. Kunze Jul 10, 2015 08:45 pm
Nikolaus Rath Jul 11, 2015 03:00 pm
Andrew Barnert via Python-ideas Jul 11, 2015 08:56 pm
Sven R. Kunze Jul 10, 2015 08:57 pm
Steve Dower Jul 10, 2015 11:42 pm
Ben Finney Jul 11, 2015 03:10 am
Nick Coghlan Jul 11, 2015 08:13 am
Steve Dower Jul 11, 2015 03:20 pm
Sven R. Kunze Jul 24, 2015 09:41 pm
Chris Angelico Jul 25, 2015 05:32 am
Nick Coghlan Jul 26, 2015 02:19 pm
Chris Angelico Jul 27, 2015 06:38 pm
Nikolaus Rath Jul 26, 2015 12:58 am
Sven R. Kunze Jul 26, 2015 10:07 am
Andrew Barnert via Python-ideas Jul 26, 2015 10:29 am
Sven R. Kunze Jul 26, 2015 11:44 am
Nick Coghlan Jul 26, 2015 02:28 pm
Nick Coghlan Jul 26, 2015 02:30 pm
Andrew Barnert via Python-ideas Jul 26, 2015 03:00 pm
Sven R. Kunze Jul 26, 2015 09:54 pm
Andrew Barnert via Python-ideas Jul 27, 2015 06:10 am
Nick Coghlan Jul 27, 2015 02:35 pm
Paul Moore Jul 26, 2015 12:18 pm
Sven R. Kunze Jul 26, 2015 09:26 pm
Ludovic Gasc Jul 28, 2015 08:15 pm
Sven R. Kunze Jul 29, 2015 06:29 am
Ludovic Gasc Aug 01, 2015 01:48 pm
Akira Li Aug 02, 2015 05:09 pm
Andrew Barnert via Python-ideas Aug 03, 2015 01:08 am
Ludovic Gasc Aug 05, 2015 11:16 pm
Steve Dower Jul 25, 2015 05:28 am
Sven R. Kunze Jul 25, 2015 05:37 pm
Messages in this thread