java - Subtask in its own heap space -
in java, supposing want run task in own heap space (e.g. can crash out of memory error without affecting rest of program), can use runtime.exec load jvm , relevant byte code files file system , redo work needs done start java program scratch.
this high overhead, if tasks want run fine-grained. there lower overhead way it?
since you'd anyways doing interprocess communication, looking rmi option you? rmi daemon, can have pooled processes can submit jobs , results. relieves of manually managing spawning vm's etc.
or job queue based solution in main vm creates job packets , dumps them on queue monitored 1 or more processes. anyways, afaik, fine grained way of doing these not spawning vm's on demand.
Comments
Post a Comment