I need to vary the number of threads my program uses, depending on how high the usage of the multiuser system is. I want to base my decisions on how high the total CPU usage over all cores is. I probably can get a good number by looking up /proc/stat(the program is running on Linux) and calculating the approximate CPU load like this, but I was wondering if there already exists a cleaner solution in Nims standard library.