tags:

views:

55

answers:

1

Hello,

I wanted to know how is it possible to fork a child JVM from a JDK or even is it possible to do so?

Some frameworks like hadoop fork a child JVM for specific tasks thus Please throw some light on the subject.

Thanks!

A: 

In general, I don't believe this is possible in the sense you mean. You can System.exec() to spin off a new process, and can call a new JVM that way. Note that you can certainly call fork() directly from native code, but in the words of a poster here, "Don't. Just don't."

andersoj