用于查找 CPU 类型和功能的库
我想知道内置什么类型的 CPU(Intel Pentium V、AMD Athlon Barton 等)以及它具有哪些功能(SSE、MMX、Stepping 等)。有现成的 Java 库吗?
I want to know what type of CPU (Intel Pentium V, AMD Athlon Barton etc.) is built in and which features it has (SSE, MMX, Stepping etc.). Is there some ready-made Java-library for this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
如果您使用的是 Windows,则可以使用 Jawin 访问 Win32 API。
If you are using Windows you could use Jawin to access the Win32 API.
是的,对于 Windows,Jawin 和 WMI 的组合可能是解决方案。这是一篇很好的文章。不幸的是只有德语,但示例代码也许有帮助。
Yes, for Windows, the combination Jawin and WMI could be the solution. Here is a good article. Unfortunately in German only, but maybe the example code helps.
JVM 在内部执行此操作,因此您无需知道。除了 JVM 已经为您所做的事情之外,Java 中没有其他方法可以利用此信息。
你为什么想知道?
The JVM does this internally so you don't need to know. There is no way in Java to take advantage of this information other than what the JVM does for you already.
Why do you want to know?