用于系统信息的跨平台API [英] Cross-platform API for system information

查看:111
本文介绍了用于系统信息的跨平台API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找可提供此类信息的图书馆:

RAM
交换空间
CPU数量
速度(CPU MHz)
芯数
芯片类型

最终,我将从Java调用它,但是使用C库就可以了,我可以用JNI包装它.

感兴趣的平台包括但不限于AIX,HP-UX,Solaris,Windows.

谢谢!

解决方案

就像您一样,我正在寻找一个跨平台系统信息库,并发现了这一点:

http://code.google.com/p/geekinfo/

我还没有测试它,但是它可能适合您的需求.

祝你好运!

I'm looking for a library that will provide this type of information:

RAM
Swap space
Number of CPUs
speed (CPU MHz)
Number of cores
Chip type

Ultimately I'll be calling into it from Java, but a C library would be fine, which I can wrap with JNI.

Platforms of interest include, but not limited to, AIX, HP-UX, Solaris, Windows.

Thanks!

解决方案

Like you I was looking for a cross platform system info library and found this:

http://code.google.com/p/geekinfo/

I didn't test it yet but it might suit your needs.

good luck !

这篇关于用于系统信息的跨平台API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆