Java - C-Like Fork?
31,718
The Application Isolation API (JSR 121) introduces Isolate
which addresses this use case.
Author by
sakana
Updated on July 09, 2022Comments
-
sakana almost 2 years
Is it possible to do a "C like" fork in java, using an new independent jvm process ?
How?
-
Pietro Braione over 9 yearsAs far as I can see, the isolation API is not supported under the current (1.8) JDK. There is an experimental MVM (Multitasking Virtual Machine) project that does, but it did not find its way in the mainline. Moreover it seems to me that the the isolation API does not allow to do a fork, where the state of the forking process is cloned in to the child: As far as I could understand the isolate starts with a main method, and (of course) different isolates do not share state.