• Post Reply Bookmark Topic Watch Topic
  • New Topic

creating new processes programmatically

 
chandana sapparapu
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Could someone tell me how to create new processes programmatically?
I want 'n' number of JVMs to be opened after running a program.
Thanks,
chandana
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use the java.lang.Runtime exec method to start new processes - which could include starting new JVM instances. Is that what you mean?
Bill
 
Diego Bowen
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you can use the following to spawn a time process:
Process p;
p = Runtime.getRuntime().exec(someProcess);
you must catch this...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!