Home  >  Q&A  >  body text

c++ - 如何编写一个程序 证明自己的计算机cache是几路组相连

在未知CPU缓存容量的情况下,如何用一个C/C++程序证明自己计算机是几路组相连?

PHPzPHPz2764 days ago562

reply all(2)I'll reply

  • 天蓬老师

    天蓬老师2017-04-17 14:45:09

    You can use wmi to get the cache status (it seems you can also do it through the registry), of course it is only for Windows

    reply
    0
  • 阿神

    阿神2017-04-17 14:45:09

    ~~I’m afraid you can’t get this number.
    CPU is transparent to upper-layer applications. Even RAM, without telling you how to get the size of RAM, you have to I don’t know the specific size, because RAM can be virtualized
    It’s easy to say about the hard disk, it’s basically the size when it’s full. .

    reply
    0
  • Cancelreply