Using Java if we run two JVM's at the same time what are the limitations I must keep in mind? -
is possible spawn off 2 separate java programs , program apples.java
, grapes.java
, , each 1 of these runs in own separate jvm on machine ?
my motivation want have monitor class, checking log-files output class (call undersurveillance
class) . , once child class forcibly shutdown, monitor class act on (it call batch file via processbuilder spawn off undersurveillance
class ).
to summarize , if call ctrl+c
command-line on undersurveillance
, should respawned again. , when respawned resume state. example, if knockknock joke app, restart in logical position left off before (so if had 10 knock-knock jokes, , forcibly shutdown before completing kk-joke #5, restart , resume @ joke #5 )
thanks
yes. can run many seperate jre processes like. limitation finite resources of machine. 2 (or more) processes cannot open , listen on same socket on same ip (for example).
Comments
Post a Comment