Why doesn my multi-goroutine program use multiple CPUs?
Under the gc compilers you must set GOMAXPROCS to allow the runtime to utilise more than one OS thread. Under gccgo an OS thread will be created for each goroutine, and GOMAXPROCS is effectively equal to the number of running goroutines. Programs that perform concurrent computation should benefit from an increase in GOMAXPROCS.
Under the gc compilers you must set GOMAXPROCS to allow the run-time support to utilise more than one OS thread. Under gccgo an OS thread will be created for each goroutine, and GOMAXPROCS is effectively equal to the number of running goroutines. Programs that perform concurrent computation should benefit from an increase in GOMAXPROCS.
Related Questions
- Why do you get an error message when program downloading in various S7-200 CPUs of the first generation via S7-200 USB/PPI and RS-232/ PPI Multi Master cable?
- Can I use the D2-EE-2 to back up the user program in the DL205 series CPUs?
- How can I tell if my threaded or OpenMP program used multiple cpus?