-
Notifications
You must be signed in to change notification settings - Fork 5
java.Runtime
Filippo edited this page May 16, 2019
·
1 revision
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.