can an application get its own CPU usage?
by bkelly from LinuxQuestions.org on (#537FY)
Centos, C++
I have an application that is CPU intensive. It receives incoming telemetry data and creates a frequency spectrum, Discrete Fourier Transform. The user needs control over various aspects but unwise settings may deprive other applications of CPU time resulting in system wide problems.
Is there a way for that process to determine its own CPU usage so as to inform the user?


I have an application that is CPU intensive. It receives incoming telemetry data and creates a frequency spectrum, Discrete Fourier Transform. The user needs control over various aspects but unwise settings may deprive other applications of CPU time resulting in system wide problems.
Is there a way for that process to determine its own CPU usage so as to inform the user?