T
Ted
I managed to get my threading script to work, to a point. I can
launch an arbitrary number of threads, and have them run
concurrently. But the processor is not being fully exploited. If I
launch ONE child process in one thread, one of the four available
cores is nearly fully utilized (about 95% of that one core's cycles.
But if I launch four, the load is distributed evenly over ALL
available cores, but only about 5% of the processor's capacity is
used This means that the time I have to wait for results is twnety
times longer than it would be if I could get the processor fully
utilitized! WHY? Might it have something to do with thread priority?
If I launch the same four child processes manually, each in its own
separate commandline window, then I get the processor being fully
utilized. How do I get the same effect by launching threads or child
processes? But this gets quite tedious very quickly when there are
dozens of scripts to run!
Any suggestions would be appreciated.
Thanks
Ted
launch an arbitrary number of threads, and have them run
concurrently. But the processor is not being fully exploited. If I
launch ONE child process in one thread, one of the four available
cores is nearly fully utilized (about 95% of that one core's cycles.
But if I launch four, the load is distributed evenly over ALL
available cores, but only about 5% of the processor's capacity is
used This means that the time I have to wait for results is twnety
times longer than it would be if I could get the processor fully
utilitized! WHY? Might it have something to do with thread priority?
If I launch the same four child processes manually, each in its own
separate commandline window, then I get the processor being fully
utilized. How do I get the same effect by launching threads or child
processes? But this gets quite tedious very quickly when there are
dozens of scripts to run!
Any suggestions would be appreciated.
Thanks
Ted