Question

Is JVM isolated from Kernal of Operating System?

I am new in learning docker, I have read some articles about differences between virtual machine and containers and I understand that the VM isolated from kernel of OS, but a question popped in my mind says : if JVM is software virtual machine, does that mean it runs separately from the kernel? I might be misunderstanding the terms, but I have a simple question: Is the JVM isolated from the kernel?

I expect that it does, meaning it just convert java code to byte code, and it interact with the kernel as process, but I need more details and information if anyone could help.

 2  75  2
1 Jan 1970

Solution

 4

Java JVM is a process just like your applications.

The JVM is, in itself, a simulation of a machine (a virtual machine) that uses Java bytecode to perform tasks, as well as interpreters such as CPython.

In others words, it's an application like the others you've used, focused on interpreting a specific language, the bytecodes, just like the Python interpreter, separate from your kernel.

A Java Virtual Machine (JVM) is not a virtual machine in the sense of VirtualBox, VMware Fusion, and Parallels, etc. The JVM is not a hypervisor. And JVM is not a container in the sense of Podman and Docker.

2024-07-18
0GuguH9