title: How to read system information in C++ on Windows and Linux?
body: <p>I need to read system information like CPU/RAM/disks usage in C++. Maybe swap, network and process too but that's less important.</p>
  
  <p>It has probably been done thousand of times before so I first tried to search for a library. Someone <a href="https://stackoverflow.com/questions/341594/how-do-i-read-system-information-in-c/343207#343207">here</a> suggested <a href="http://www.hyperic.com/products/sigar" rel="nofollow noreferrer">SIGAR</a>, which seems to fit my needs but it has a <a href="http://en.wikipedia.org/wiki/GNU_General_Public_License" rel="nofollow noreferrer">GPL</a> license and it is for inclusion in a proprietary product. So it's not an option here.</p>
  
  <p>I feel like it's something not that easy to implement, as it'll need testing on several platforms. So a library would be welcome.</p>
  
  <p>If you don't know of any library, could you point me in the right direction for both platforms?</p>