How does shared memory vs message passing handle large data structures?

后端 未结 10 1317
南方客
南方客 2020-12-22 19:13

In looking at Go and Erlang\'s approach to concurrency, I noticed that they both rely on message passing.

This approach obviously alleviates the need for complex loc

10条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-22 19:52

    Usually message passing languages (this is especially easy in erlang, since it has immutable variables) optimise away the actual data copying between the processes (of course local processes only: you'll want to think your network distribution pattern wisely), so this isn't much an issue.

提交回复
热议问题