I discovered that I can use the command "top -l 1" in terminal to retrive this information, but I am having trouble doing this directly in my app. I tried...
InFile = popen("top -l 1", "r");
if (InFile)
bytesRead = fread(streamBuffer, sizeof(char), sizeof(streamBuffer), InFile)...