问题
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.
回答1:
There is almost the same question here, and it has an answer:
https://stackoverflow.com/a/871614/344347
来源:https://stackoverflow.com/questions/10517295/multiplatform-library-for-accessing-system-resource-information