Skip to content
Filippo edited this page May 16, 2019 · 1 revision

Summary

Actually implemented function


  • getRuntime()

Return the runtime instance

  • availableProcessors()

Return 1. Surprise! At least until more processor will be available.

  • totalMemory()

Return total memory expressed in bytes.
Example: int totalBytes = Runtime.getRuntime().totalMemory();

  • freeMemory()

Return actual free memory expressed in bytes.

Clone this wiki locally