java - Windows JVM process priority -




i started 2 jvm processes (jars) programmatically 2 different threads in java application using runtime.getruntime.exec(..) method. executing sequential under windows os, windows gave cpu first process , second waiting without cpu percentage given. how start processes more concurrent?

//thread 1      string fullcommand = "java -djava.security.policy=\"c:\java.policy\" -cp testlinda.jar;../../lib/globallinda.jar; rs.ac.bg.etf.kdp.integral "; string [] envp = {"jobid=1"}; string filepath = "./job1";  process proc = runtime.getruntime().exec(fullcommand, envp, new file(filepath));  int returnvalue = proc.waitfor();   //thread 2  string fullcommand = "java -djava.security.policy=\"c:\java.policy\" -cp testlinda.jar;../../lib/globallinda.jar; rs.ac.bg.etf.kdp.integral "; string [] envp = {"jobid=2"}; string filepath = "./job2";  process proc = runtime.getruntime().exec(fullcommand, envp, new file(filepath));  int returnvalue = proc.waitfor(); 





wiki

Comments

Popular posts from this blog

elasticsearch - what is the equivalent data type for geo_point in hibernate search? -

firebase - How to wait value in Ionic 2 -

powershell - Invoke-WebRequest fails for a large file -