Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

goroutine学习记录 - Ray_YC's Blog #9

Open
lyc10031 opened this issue Aug 13, 2019 · 0 comments
Open

goroutine学习记录 - Ray_YC's Blog #9

lyc10031 opened this issue Aug 13, 2019 · 0 comments

Comments

@lyc10031
Copy link
Owner

https://lyc10031.github.io/2019/08/07/try-goroutine.html#runtime%E5%8C%85%E4%B8%AD%E6%9C%89%E5%87%A0%E4%B8%AA%E5%A4%84%E7%90%86goroutine%E7%9A%84%E5%87%BD%E6%95%B0

学习下goroutine的使用方法goroutine是Go并行设计的核心。goroutine说到底其实就是协程,但是它比线程更小,十几个goroutine可能体现在底层就是五六个线程,Go语言内部帮你实现了这些goroutine之间的内存共享。执行goroutine只需极少的栈内存 (大概是4~5KB) ,当然会...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant