Forums Register Login

running time and number of processors

+Pie Number of slices to send: Send
Suppose I run a pgm "java MyPgm param_1" on my machine I find it takes 1 hour. Then I run "Java MyPgm param_2" it takes 1 hr. Then I have to run "java MyPgm param_3", etc. Instead of running them one after another, I want to invoke two background jobs simultaneously, ie. run
java MyPgm param_1
java MyPgm param_2
java MyPgm param_3
simultaneously.
Now how much time will it save ? Should it be ---
(sum of time of running one by one = 3hrs ) / number of processors ?
Thanks,
+Pie Number of slices to send: Send
Sort of depends. What percentage of your CPU is each process using?
If each one maxes out your CPU power, running in three different JVMs will not fix your problem.
When people don’t understand what you are doing they call you crazy. But this tiny ad just doesn't care:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 720 times.
Similar Threads
need more skill on dual cpu system?
concurrent threads
Java Multi-Processing?
Performance not improving after using Multithreading
job speed and # of processors
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 03:43:48.