Skip to content

Commit 50ffc47

Browse files
committed
add reference
1 parent de2e4ce commit 50ffc47

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

syscall.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -667,3 +667,9 @@ func entersyscall_gcwait() {
667667
同时 runtime 又保留了自己的特权,在执行自己的逻辑的时候,我的 P 不会被调走,这样保证了在 Go 自己“底层”使用的这些 syscall 返回之后都能被立刻处理。
668668

669669
所以同样是 epollwait,runtime 用的是不能被别人打断的,你用的 syscall.EpollWait 那显然是没有这种特权的。
670+
671+
## 参考资料
672+
673+
1. http://blog.studygolang.com/2016/06/go-syscall-intro/
674+
675+
2. the linux programming interface

0 commit comments

Comments
 (0)