Intermediate
Go (Golang)
Q51 / 100
What does GOMAXPROCS control?
Correct! Well done.
Incorrect.
The correct answer is B) The number of OS threads that can execute Go code simultaneously (defaults to number of CPUs)
B
Correct Answer
The number of OS threads that can execute Go code simultaneously (defaults to number of CPUs)
Explanation
runtime.GOMAXPROCS(n) sets the number of P (processors) in the scheduler. Default is runtime.NumCPU(), enabling true parallelism.
Progress
51/100