C Program to determine Levels & Size of Cache

前端 未结 6 980
北海茫月
北海茫月 2020-11-30 00:38

Full Re-Write/Update for clarity (and your sanity, its abit too long) ... (Old Post)

For an assignment, I need to find the levels (L1,L2,...) and si

6条回答
  •  隐瞒了意图╮
    2020-11-30 01:26

    For windows, you can use the GetLogicalProcessorInformation method.

    For linux, you may use sysconf(). You can find valid arguments for sysconf in /usr/include/unistd.h or /usr/include/bits/confname.h

提交回复
热议问题