Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
さまざまな sysconf マクロを理解しようとしていました。以下のようなプログラムを作成しました。
int main() { fprintf(stdout, "No. of clock ticks per sec : %ld\n",sysconf(_SC_CLK_TCK)); return 0; }
結果は常に 100 になります。クロックが 2.93 GHz の CPU で実行しています。100 という数字は正確にはどういう意味ですか?
あなたの場合、カーネルは毎秒100クロック(または100Hzクロック)に設定されています。