其他语言的 Goroutine 类似物
Goroutine analogues in other languages
并发是编程中真正困难的部分。最近一段时间goroutine很火。我的问题是 - 其他语言中存在什么样的 goroutine 类似物?
goroutine 的灵感来自 CSP (Communicating sequential processes), which is highly influential in the design of the occam programming language, and also influenced the design of programming languages such as Limbo, RaftLib, Go, and Crystal。
注意goroutine are not without criticisms。
它与 Actor Model 的不同之处在于:
- CSP 进程是匿名的,而参与者具有身份。
- CSP 消息传递从根本上涉及发送和接收消息所涉及的进程之间的会合。相比之下,actor 系统中的消息传递基本上是异步的
- CSP 使用显式通道进行消息传递,而参与者系统将消息传输到指定的目标参与者。
并发是编程中真正困难的部分。最近一段时间goroutine很火。我的问题是 - 其他语言中存在什么样的 goroutine 类似物?
goroutine 的灵感来自 CSP (Communicating sequential processes), which is highly influential in the design of the occam programming language, and also influenced the design of programming languages such as Limbo, RaftLib, Go, and Crystal。
注意goroutine are not without criticisms。
它与 Actor Model 的不同之处在于:
- CSP 进程是匿名的,而参与者具有身份。
- CSP 消息传递从根本上涉及发送和接收消息所涉及的进程之间的会合。相比之下,actor 系统中的消息传递基本上是异步的
- CSP 使用显式通道进行消息传递,而参与者系统将消息传输到指定的目标参与者。