用于访问系统资源信息的多平台库 [英] Multiplatform library for accessing system resource information

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

问题描述

我需要一个多平台库来确定操作系统有多少RAM空间,多少RAM被安装,CPU使用率是多少等等。该库应在Windows和POSIX环境中工作。任何建议?

I need a multiplatform library to determine how much RAM the OS has free, how much of it is installed, how high the CPU usage is and so on. The library should work in both Windows and POSIX environments. Any suggestions?

编辑:我知道它的操作系统的定义;我可以写一些小的库来抽象这个我自己,但我宁愿不这样做,如果已经有一些库可用。

Edit: I know it's OS-specific by definition; I can write some small library to abstract this on my own, but I'd rather not do this, if there is already some library available.

推荐答案

这里有几乎相同的问题,它有一个答案:

There is almost the same question here, and it has an answer:

http://stackoverflow.com/a/871614/344347

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

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