I’m in need of a C library that will give me system information such as processor speed, number of cores, available memory, etc. It must be written in C, preferably open source, and platform independent. Does anybody know if such a library exists?
libstatgrab may fit your requirements.
Thanks. Have you used the library? Is it still being maintained? The news section on the website lists the last update as being in 2008.
Um, I missed the date on the news section. I don’t know if it’s still being maintained. I worked on a project that uses it a few years ago. The product runs on Linux and Solaris. It’s been a while and I don’t remember many of the details now, but I think it uses the library to obtain some processor and memory usage information. I don’t recall running into any major issues.