Skip to content

Commit 112029d

Browse files
committed
fix typo
1 parent 7191996 commit 112029d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

syscall.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,7 @@ func entersyscall_gcwait() {
662662

663663
## 总结
664664

665-
提供给用户使用的系统调用,基本都会通知 runtime,以 entersyscall,exitsyscall 的形式来告诉 runtime,在这个 syscall 阻塞的时候,由 runtime 判断是否把 P 腾出来给其它的 M 用。即将 M 和 P 解绑定,如果绑定被解除,在 syscall 返回时,这个 g 会被放入执行队列 runq 中。
665+
提供给用户使用的系统调用,基本都会通知 runtime,以 entersyscall,exitsyscall 的形式来告诉 runtime,在这个 syscall 阻塞的时候,由 runtime 判断是否把 P 腾出来给其它的 M 用。解绑定指的是把 M 和 P 之间解绑,如果绑定被解除,在 syscall 返回时,这个 g 会被放入执行队列 runq 中。
666666

667667
同时 runtime 又保留了自己的特权,在执行自己的逻辑的时候,我的 P 不会被调走,这样保证了在 Go 自己“底层”使用的这些 syscall 返回之后都能被立刻处理。
668668

0 commit comments

Comments
 (0)