This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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?