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.
只是为了好玩,我做了一个小程序来显示我的 cpu 在 ubuntu 上的活动。我的程序读取并解析 /proc/cpuinfo 文件,它可以工作。
但是有交易,我显示数据并在它旁边打开 htop 并且 cpu 使用情况有点不同。在使用无限循环进行一些测试后,我发现 htop 说只有一个核心处于 100%(似乎是逻辑),但 cpuinfo 说我所有的 8 个核心都处于 100%。有什么解释为什么会有这些差异吗?
我的电脑在 unbutu 18.04 上运行英特尔 i7 10510U。
谢谢。