A simple C program to monitor cpu/mem info