I've recently been musing about possible optimizations for
my calculations code using threads. I have never used this
feature before.
If I had a structure like so:
could I expect a performance increase if I converted it to call
a threaded procedure for each loop value? To my mind, it would
in effect be processing each loop value in parallel vs. serial,
but I am not sure how Windows would handle the time slicing and if
it would actually be of any benefit.
I hesitate to experiment with my stable code right now to find out.
Could anyone shed any light on this for me?
------------------
Bernard Ertl
my calculations code using threads. I have never used this
feature before.
If I had a structure like so:
Code:
FOR LoopValue& = 1 TO NumIterations& CalculateStuffFor LoopValue& NEXT
a threaded procedure for each loop value? To my mind, it would
in effect be processing each loop value in parallel vs. serial,
but I am not sure how Windows would handle the time slicing and if
it would actually be of any benefit.
I hesitate to experiment with my stable code right now to find out.
Could anyone shed any light on this for me?
------------------
Bernard Ertl
Comment