用于查找 CPU 类型和功能的库

发布于 2024-09-24 14:42:31 字数 102 浏览 0 评论 0原文

我想知道内置什么类型的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

帅的被狗咬 2024-10-01 14:42:31

如果您使用的是 Windows,则可以使用 Jawin 访问 Win32 API。

If you are using Windows you could use Jawin to access the Win32 API.

记忆で 2024-10-01 14:42:31

是的,对于 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.

じее 2024-10-01 14:42:31

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?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文