1

If I run a java program, does JVM contain it as a child process/thread?

To be specific, when JVM runs, I know that it has many different type of threads. But I am confused, is java/mutator process/thread encapsulated inside JVM? Does JVM spawn java/mutator process/thread?

I use pstree -p {java_pid_from_top} to get the following graph. If so, one of children may be java/mutator process/thread?

enter image description here

enter image description here from link

skytree
  • 1,060
  • 2
  • 13
  • 38
  • 2
    The JVM is a process. Each Java program runs in its own process. But each process has several threads. – JB Nizet Nov 07 '17 at 17:26
  • 3
    Yes, some of these threads are JVM threads, others are application threads. They all have the same owner (parent) process. – apangin Nov 07 '17 at 17:31
  • 2
    Hard to answer, as it is entirely unclear what “java/mutator process/thread” is supposed to mean. – Holger Nov 08 '17 at 10:50

0 Answers0