PEP 492: isn't the "await" redundant?
Lawrence D’Oliveiro
lawrencedo99 at gmail.com
Fri Sep 9 17:03:20 EDT 2016
On Saturday, September 10, 2016 at 12:39:04 AM UTC+12, Chris Angelico wrote:
> In contrast, you want to use threads if you need the ability to
> quickly and easily share mutable data, or if you want all resource
> usage to be lumped together - eg if you're not really doing several
> separate jobs, but are doing one single conceptual job.
Multiple processes are usually preferable to multiple threads. The default-shared-nothing memory model is less bug-prone than default-shared-everything.
Think of every time you use “&” and “|” in a shell command line: you are creating multiple processes, and yet they are doing a “single conceptual job”.
More information about the Python-list
mailing list