`Go 是一个并发语言`这是什么意思?
Go 是并发语言
这是什么意思?
这是否意味着它是 C/C++/Java.. 的替代品?
Go is a concurrent lang
What does this mean?
doesn't this mean that it is a C/C++/Java.. alternative?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
并发语言是一种具有并发语言结构的语言。
Go 是一种并发语言,因为它有“goroutines”。
A concurrent language is a language that has language constructs for concurrency.
Go is a concurrent language because it has "goroutines".
这意味着它是一种具有适合并发(并行、多线程等)编程特性的语言。它有特殊的语言结构来支持这种类型的编程。并发编程可以用其他语言(C/C++、Java 等)完成,但它(可以说)会更困难,并且可能会导致程序中出现更多错误。
It means that it is a language with features suitable for concurrent (parallel, multithreaded, etc) programming. It has special languge constructs to support this type of programming. Concurrent programming can be done in other languages (C/C++, Java, etc) but it will (arguably) be harder and will probably result in more errors in the programs.
以下是 Go 编程语言的一些主要作者提供的有关并发编程的一些资源。
并发编程简介
有关贝尔实验室 CSP 风格的线程编程的资源
Here are some resources about concurrent programming from some of the principal authors of the Go programming language.
Introduction to Concurrent Programming
Resources about threaded programming in the Bell Labs CSP style