Simultaneously run java programs run on same JVM?

后端 未结 6 2108
旧巷少年郎
旧巷少年郎 2020-12-08 01:33

Suppose I run two java programs simultaneously on the same machine. Will the programs run in a single instance of JVM or will they run in two different instances of JVM?

6条回答
  •  时光取名叫无心
    2020-12-08 01:40

    If you start each one with the java command (from the command line) they will run as totally separate JVMs.

    "Programs" may be started as separate Threads running inside the one JVM.

提交回复
热议问题