Question 1: Without using trial and error, is there a general rule to how deep multi-threading should be done?
Let's say I have 5 nested for loops, all of which loop 100 times.
Do I multi-thread the first loop? First and second? First three? All but last? All?
Question 2: Assume I am to multi-thread all loops, would I do the following?
Let's say I have 5 nested for loops, all of which loop 100 times.
Do I multi-thread the first loop? First and second? First three? All but last? All?
Question 2: Assume I am to multi-thread all loops, would I do the following?
for a, aVal in enumerate(sa_data[0]): thread.start_new_thread(func2, 0) #pass 0 as arg if my func requires no args? def func2(neverUsed) for b, bVal in enumerate(sa_data[1]): thread.start_new_thread(func3, 0) def func3(neverUsed) for c, cVal in enumerate(sa_data[2]): ...Is there possibly a way to do the same as the above, but without function calls?