this is the c code to get the pids and %cpu n %mem in linux/unix FILE *fp; char pid[MAX]="ps -eo pid,pcpu,pmem"; fp=popen(pid,"r"); while...
Separate names with a comma.