I know that golang is using go routine implementing the concurrency. I assume go routine is lighter on weight than thread, one thread could have many routines. How does the golang manage threads and routines? Is golang always running a single thread like Node.js? Or Golang manages a lot of threads and creates more routines on these threads? Does golang providing some lib to touch the Process/Thread on OS level?
1条回答 默认 最新
dousao9569 2016-01-05 19:57关注Go does manage a lot of threads and creates more routines on these threads. Go doesn't provide access to Process/Thread/Goroutine, them even haven't a names. Only channels in Go have names.
解决 无用评论 打赏 举报