Program mechanics.

How does program gets CPU Frequency?

So, as I said program uses Linux system calls. So it uses open() and read() calls to open and read data from following file: /sys/devices/system/cpu/cpu/cpufreq/cpuinfo/cpu_cur_freq/ See: CCpu.h and CCpu.cpp

How program does gets data about RAM?

As on Linux everything is file. There on every *nix is {/proc/meminfo/}} file. Reading and parsing it gives me possibility to get data about sysyem memory.

LINK: The Netrunner Laungage

Last edited Nov 29, 2014 at 9:04 PM by overkiller, version 4