- getRuntime
Returns the single Runtime instance for the current application.
- addShutdownHook
Registers a VM shutdown hook. A shutdown hook is a Thread that is ready to run,
but has not yet been
- exec
Executes the specified command and its arguments in a separate native process.
The new process uses
- availableProcessors
Returns the number of processor cores available to the VM, at least 1.
Traditionally this returned t
- freeMemory
Returns the number of bytes currently available on the heap without expanding
the heap. See #totalMe
- totalMemory
Returns the number of bytes taken by the heap at its current size. The heap may
expand or contract o
- maxMemory
Returns the maximum number of bytes the heap can expand to. See #totalMemory for
the current number
- removeShutdownHook
Unregisters a previously registered VM shutdown hook.
- gc
Indicates to the VM that it would be a good time to run the garbage collector.
Note that this is a h
- exit
Causes the VM to stop running and the program to exit. If
#runFinalizersOnExit(boolean) has been pre
- halt
Causes the VM to stop running, and the program to exit with the given return
code. Use 0 to signal s
- runFinalization
Provides a hint to the VM that it would be useful to attempt to perform any
outstanding object final