Concurrency: Processes vs Threads
问题 What are the main advantages of using a model for concurrency based on processes over one based on threads and in what contexts is the latter appropriate? 回答1: Fault-tolerance and scalability are the main advantages of using Processes vs. Threads. A system that relies on shared memory or some other kind of technology that is only available when using threads, will be useless when you want to run the system on multiple machines. Sooner or later you will need to communicate between different