Sigar is a process library that we use for monitoring our processes. It has native library bindings and can tell you about PIDs, hardware details etc. on a lot of platforms.