Simply put: switching your concurrent programming model to actors makes multithreaded applications easier to code.
简而言之,将您的并发编程模型转换为角色使多线程应用程序更容易编码。
The actor model facilitates concurrent programming by allowing a safer mechanism for message-passing between processes (or actors).
角色模型支持采用一种更安全的机制来在进程(或角色)之间进行消息传递,极大地方便了并发编程。
The Go authors chose a message-passing model as their recommended method for concurrent programming. The language does still support Shared memory, however the authors have the following philosophy.
Go的作者选择了消息传递模型来作为推荐的并发编程方法。
应用推荐