Is Java Virtual Machine a Process?

Asked 2 years ago, Updated 2 years ago, 112 views

Hi, everyone. I looked through the operating system book again and saw this phrase. "JVM is the process of creating a process." If so, is it one process that appears in the Process column in the window that appears by pressing Ctrl+Alt+Delete? And if you think about this part, "Process creates a process." Is it that we generate a process from the coding window that we code with a command that generates a process? Is there a command like that? I'd appreciate it if you could explain more.

jvm

2022-09-22 08:24

1 Answers

All programs made by Java run on the individual JVM process. A separate process can be understood to mean that it does not share a stack or heap memory area. Source

And with this code, you can start a new Java process.Source

Process proc = Runtime.getRuntime().exec("java -jar A.jar");


2022-09-22 08:24

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.