Simultaneously run java programs run on same JVM?

后端 未结 6 2115
旧巷少年郎
旧巷少年郎 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:49

    Will the programs run in a single instance of JVM or will they run in two different instances of JVM?

    That is up to you. The simplest approach is to use separate JVMs.

提交回复
热议问题