Hi everyone,
I want to write a code in C++ so i want to knw information about /proc in liux . where if we give the command "top" in terminal it will show all currently running information like this if i want to display these information using C++ code .so i want to know where these files located..mainly i want to know where each processes cpu and memory info. is located...............if anyone knows please help...

Cpuinfo: /proc/cpuinfo
Meminfo: /proc/meminfo

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.