lovespring
lovespring

Reputation: 19559

Number of processes in a single JVM instance

It seems one VM instance can only run one process (real OS or VMware can run multiple process in it).

Is it right?

Upvotes: 2

Views: 1081

Answers (1)

Eusebius
Eusebius

Reputation: 531

Every instance of your Java Virtual Machine is a single java process running some bytecode. Inside each process, you can handle several threads if you need some concurrency. If you absolutely need various distinct java processes in your application, you can use ProcessBuilder and Process to start a new child process, corresponding to a new JVM instance.

Upvotes: 2

Related Questions