The project is about finding the memory usage of the program. It's similar to the task manager.
The packet is about finding the memory usage of the program. It's similar to the task manager. In the windows task manager, the user can know how much memory is allocated for a particular program. resource.h library plays a major part, it helps in finding the memory usage.
the malloc allocates a block of uninitialized memory in the memory block
getrusage measures of the resources used by the current process or its terminated and waited-for child processes. usleep is used to suspend the execution of a program for a specified period of time.usleep(10) passed 10 milliseconds as a parameter.
The following libraries must be included:-
Submitted by Ageer HariKrishna (AgeerHK)
Download packets of source code on Coders Packet