I am newbie to linux.
I want to track the threads created by the process like any command or program to know the present threads running for a particular process.
I found this link Tracking threads memory and CPU consumption but didn't find my solution.
I am not asking about any tool, library where and how it is implemented but indeed some programming point of view. This means I'd like to know what APIs are available to inspect a given process's thread count, memory and CPU consumption.