I was glad to get all the basic startup understandings to design, write, and compile a visual studio program. Kicks are using it for sc2 galaxy code. I have quite a library of stuff on the same topic. I posted back in

This was written with the same concept. It contains 18,000 lines of galaxy code I cut and pasted into sc2mapeditor. The only values I had to work with were 900 planet names and elements from earth name values). All other values were more developed, and specific random number generated values. Every time the program runs, I have a new universe of values.

NOW I CALL FOR THE RUMBLE. What kind of galaxy triggers would be useful, and need a massive amount of coding? Techniques for coding can be included. I am looking for the smart minds of galaxy to speak on what’s NEEDED?

I like your idea a lot, but I feel looking at this right away is diving past a tutorial. So I have written the first stages of a Program that would do what you asked. The initial step is to read a library. We would need to read, recompile, and write the library.

I understand what you are asking to do. But my confusion is settled by replacing what you call Fuction with Action. If we new thread a fuction call we are still tied waiting for the result. So a new thread is not really created. If we thread an Action, then we are no longer waiting for a result, and so the thread is free to run on its own.

I would like to look at writing a program for optimization. Where it will read a library and recompile it for threading optimal.

Check out my tutorial, and I would like to continue this descusion S2rius

The point is that it can be inconvenient (especially with larger functions) to actually new-thread them, since you have to write a "starter" function and turn all paramters into globals.
So it's not actually optimizing but rewriting what I had in mind. But optimization is a good subject too.

Then maybe my terminoligy was incorrect by using the word optimization.

RE-Writing was what I had in mind. Locate all actions, and thread them as trigger execute, no wait. The question would be when does an action rely on previous actions. Probably would have to index each variable used, making sure to only thread deep if variables are not shared.

I'm not sure I can follow.. where could passed variables make problems?
The global variable used to pass the parameter is instantly turned into a local again,
And Galaxy doesn't have a pass-by-reference.

Of course if you use your main thread to kill a unit, and use your new thread to do something with this unit a few seconds after it's actual death, then this is your fault for writing stupid code :P

if each action was threaded on its own without wait. One action might rely on the one previous to have finished fist. So arbitrarily threading everything would be a problem. The solve would be making sure previous action did not change any variables that future actions use. Again I don’t know galaxy enough to say how much of an advantage threading everything possible would be.