Re: [dev] golang dwm status

From: Sebastián Ferrara <sjferrara_AT_gmail.com>
Date: Thu, 13 Mar 2014 18:08:18 -0300

2014-03-13 16:50 GMT-03:00 Markus Teich <markus.teich_AT_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
Received on Thu Mar 13 2014 - 22:08:18 CET

This archive was generated by hypermail 2.3.0 : Thu Mar 13 2014 - 22:12:25 CET