Skip to content

Commit 6424f0a

Browse files
committed
fix type error
1 parent 0609df1 commit 6424f0a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scheduler.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@ func newproc1(fn *funcval, argp *uint8, narg int32, callerpc uintptr) {
605605
所以 `go func` 执行的结果是调用 runqput 将 g 放进了执行队列。什么时候开始执行并不是用户代码能决定得了的。再看看 runqput 这个函数:
606606

607607
```go
608-
// runqput 常识把 g 放到本地执行队列中
608+
// runqput 尝试把 g 放到本地执行队列中
609609
// next 参数如果是 false 的话,runqput 会将 g 放到运行队列的尾部
610610
// If next if false, runqput adds g to the tail of the runnable queue.
611611
// If next is true, runqput puts g in the _p_.runnext slot.
@@ -1583,4 +1583,4 @@ Pany --> |stopTheWorldWithSema|Pgcstop
15831583

15841584
## 抢占流程
15851585

1586-
TODO
1586+
TODO

0 commit comments

Comments
 (0)