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”.
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to