A
adish
Hi,
I need to execute many (say 20) time consuming tasks (each takes
about 1 hour to run).
At the moment I dispatch them serially one by one.
According to the TaskManager the process runs on 1 CPU at 50%
utilization.
The whole batch finishes running after about 20 hours.
I'm using a hyper-threaded XP machine and the env var.
NUMBER_OF_PROCESSORS=2.
I'd like to dispatch the tasks in parallel to each CPU so that my
processing time will be approx. 10hour.
How can I do this in a batch file script.
I know about the start command, but that does not give precise control
over the number of running processes, and can cause hanging or 3
processes to run in parallel. There is no option to wait.
Is there some way to loop on NUMBER_OF_PROCESSORS and
"waitMultipleThreads" until one of the tasks is done?
Please advise.
Thanks,
Adi
I need to execute many (say 20) time consuming tasks (each takes
about 1 hour to run).
At the moment I dispatch them serially one by one.
According to the TaskManager the process runs on 1 CPU at 50%
utilization.
The whole batch finishes running after about 20 hours.
I'm using a hyper-threaded XP machine and the env var.
NUMBER_OF_PROCESSORS=2.
I'd like to dispatch the tasks in parallel to each CPU so that my
processing time will be approx. 10hour.
How can I do this in a batch file script.
I know about the start command, but that does not give precise control
over the number of running processes, and can cause hanging or 3
processes to run in parallel. There is no option to wait.
Is there some way to loop on NUMBER_OF_PROCESSORS and
"waitMultipleThreads" until one of the tasks is done?
Please advise.
Thanks,
Adi