- how view current cpu freq by calling sysctl() ?, Pahanivo, 09:23 , 15-Сен-14 (1)
> how view current cpu freq by calling sysctl() libc function in FreeBSD, > for example ? > very thanks !google is a best way for this. sysctl -a | egrep -i 'hw.machine|hw.model|hw.ncpu'
- how view current cpu freq by calling sysctl() ?, shtyrskiy, 21:48 , 25-Сен-14 (4)
>> how view current cpu freq by calling sysctl() libc function in FreeBSD, >> for example ? >> very thanks ! > google is a best way for this. > sysctl -a | egrep -i 'hw.machine|hw.model|hw.ncpu' я имел в виду либсишный вызов ФУНКЦИИ а не юз. сист. утил. но всеравно ВЕРИСЭНКС
- how view current cpu freq by calling sysctl() ?, pavlinux, 18:25 , 17-Сен-14 (2)
> how view current cpu freq by calling sysctl() libc function in FreeBSD, for example ?Собеседование не прошёл!
- how view current cpu freq by calling sysctl() ?, shtyrskiy, 21:46 , 25-Сен-14 (3)
>> how view current cpu freq by calling sysctl() libc function in FreeBSD, for example ? > Собеседование не прошёл!дык это ТЫ НЕ ПРОШЕЛ, а я написал, что хотел, хотя со скрипом: while(true){ if ( !sysctlnametomib("dev.cpu.0.freq", freq_mib, &len)){ len = sizeof(curfreq); if (sysctl(freq_mib, 4, &curfreq, &len, NULL, 0) == 0) { // if no error cout << "sysctl() look at dev.cpu.0.freq = " << curfreq << endl; }else{ perror("sysctl() ERROR!!!"); } } sleep(8); }
|