Skip to content

Commit 854690b

Browse files
renaming context to logical processor
1 parent 4eecdc6 commit 854690b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎chapter6/listing07/listing07.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// This sample program demonstrates how to create goroutines and
2-
// how the goroutine scheduler behaves with two contexts.
2+
// how the goroutine scheduler behaves with two logical processor.
33
package main
44

55
import (
@@ -15,7 +15,7 @@ func main() {
1515
var wg sync.WaitGroup
1616
wg.Add(2)
1717

18-
// Allocate two contexts for the scheduler to use.
18+
// Allocate two logical processors for the scheduler to use.
1919
runtime.GOMAXPROCS(2)
2020

2121
fmt.Println("Start Goroutines")

0 commit comments

Comments
 (0)