2014-03-13 16:50 GMT-03:00 Markus Teich <markus.te...@stusta.mhn.de>:
>
> Thanks for the hint. However I wanted to avoid spawning other processes as 
> much
> as possible. Is there another way to count the cpu cores just by reading a 
> file
> in /proc or maybe /sys?

See  http://golang.org/pkg/runtime/#NumCPU

func NumCPU() int

NumCPU returns the number of logical CPUs on the local machine.

Cheers

Reply via email to