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!
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!
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."