Go的WaitGroup源码分析
- 2022 年 1 月 9 日
- 笔记
WaitGroup 是开发中经常用到的并发控制手段,其源代码在 src/sync/waitgroup.go 文件中,定义 …
Continue ReadingWaitGroup 是开发中经常用到的并发控制手段,其源代码在 src/sync/waitgroup.go 文件中,定义 …
Continue Reading监控线程是在runtime.main执行的时候在系统栈中创建的,监控线程与普通的工作线程区别在于,监控线程不需要绑定p来 …
Continue ReadingLinux系统调用 概念:系统调用为用户态进程提供了硬件的抽象接口。并且是用户空间访问内核的唯一手段,除异常和陷入外,它 …
Continue Reading接上一篇继续分析一下runtime.newproc方法。 函数签名 newproc函数的签名为 newproc(siz …
Continue Reading本文所使用的Golang为1.14,dlv为1.4.0。 源代码 package main import “fmt” f …
Continue Reading本文所使用的golang为1.14,gdb为8.1。 一直以来对于函数调用都仅限于函数调用栈这个概念上,但对于其中的详细 …
Continue Reading