fork equivilent in Java

Hi all,

I need to find a way to fork my process, so that I can have two identical processes, independent of each other. I have tried emulating this through copying of this process in code, but I am finding it difficult to make this newly created processes execution begin at the correct point.

I expect both processes to continue their execution at the same point, unlike simply creating a copy of this thread+variables.

I hope someone has a method of doing this.

Regards,

Mark

[514 byte] By [mark0077a] at [2007-11-26 19:53:26]
# 1
The best you can hope for is to call fork() via a JNI interface. It'll always be system-dependent, so there's no extra harm in doing it this way. (There's no portable way of doing this in Java).It shouldn't be too hard to create a JNI interface for fork().
shankar.unnia at 2007-7-9 22:45:11 > top of Java-index,Core,Core APIs...