2

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

Is it right?

2
  • 2
    One VM instance is one process, but it can have as many Threads as it would like to. And it is possible to run many JVMs beside each other in a single OS instance. And zou can run many OS instances beside each other in a virtualized environment. Commented Sep 15, 2013 at 9:57
  • Your language is confused, which may explain your confusion. A VM instance is a process. The VM itself doesn't get any say in that: the operating system does it. Commented Sep 15, 2013 at 10:10

1 Answer 1

2

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.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.