-
-
Save julie-is-late/1831225abe28e29ef2c32f4957edead6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"runtime" | |
) | |
func main() { | |
fmt.Printf("current: %d\n", runtime.GOMAXPROCS(0)) | |
fmt.Printf("max: %d\n", runtime.NumCPU()) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment