[Swift-user] Swift app question

Jonathan Monette jon.monette at gmail.com
Wed Sep 8 18:45:49 CDT 2010


Hello,
     This is probably a simple question but when are app functions 
executed?  Take a look at this psuedocode.


foreach y in years
{
         Month m1< "month1.txt">;
         Month m2 <"month2.txt">;

         Year y = calculate( m1, m2 );
}

When will the app "calculate" be executed?  Will it execute as soon as 
m1 and m2 for a given iteration are mapped or will it wait till each 
thread has mapped its own m1 and m2 and execute the apps all together.



More information about the Swift-user mailing list