我们都知道runtime.GOMAXPROCS默认设置为CPU核心数,如果这个属性设置过大怎么办?
runtime.GOMAXPROCS
performance garbage-collection go
garbage-collection ×1
go ×1
performance ×1