This week's book giveaways are in the iOS and Features new in Java 8 forums. We're giving away four copies each of Barcodes with iOS: Bringing together the digital and physical worlds and Core Java for the Impatient and have the authors on-line! See this thread and this one 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?