May i know is this code will read the memory usage for the JVM or the CPU memory? If its not read the CPU memory, is there any codes or plugin or perhaps some software that can capture the CPU memory while running the program? im using eclipse.
(Next question is related to thread but i guess it still can fit with the general scope.)
Supoose the totalMemoryUsed should be higher or lower when using more threads?