Hacker News new | past | comments | ask | show | jobs | submit login

>For instance, in the versions of Go prior to 1.5 goroutines used to run on a single core. And as of 1.5 the variable GOMAXPROCS can be set to the number of cores.

This is not true. Prior to Go 1.5 GOMAXPROCS defaulted to 1, but could always be set to use any number of cores. In Go 1.5, the default value for GOMAXPROCS was changed to the number of "cores" available on the machine. Prior to then many applications were setting GOMAXPROCS based on CLI flags or just hard-coding the future behavior with `runtime.GOMAXPROCS(runtime.NumCPU())`.




My bad, you are correct. I just wanted to point out that one can have concurrency without parallelism.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: