I was developing a smf bundle for OSGi devices to measure the CPU and memory usage and I found this article and the code provided to be very useful. But there was a little error (I am sure it is a mistake) in the code in the c code provided for windows(Listing C).
Add the diclaration for the variable “externalCPUmon”
static int externalCPUmon;
other than that code works fine.
Tharanga Wijethilake
Assitant researcher,
Media team,
Unversity Of Oulu.