I'm trying to figure out how golang multiplexes goroutines onto OS threads but I couldn't find the implementation for this in the golang source. I've looked in proc.go and runtime.go. I want to know how threads are initialized and managed and if it uses pthreads.
1条回答 默认 最新
- dreamevil0002 2016-08-31 19:07关注
The strategy is different for each os.
Some examples are in the windows os portion for the Go runtime and the linux os portion for the Go runtime本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报