The point of the Flickr is just showing something else using threads and how the CallComplete can be used, no deep significance. If you make num1..3 bigger then DoWork will take longer and the Flickr may finish first.
We call DoWork1..3 (3 of them) and each writes out following when they complete (+ anything you add in the DoWork subroutines). It's maybe not the most sensible output, but is shows the state of all 3 DoWorks as each one finishes, i.e. that the longer lasting jobs are part way through when the the shorter jobs finish.
We call DoWork1..3 (3 of them) and each writes out following when they complete (+ anything you add in the DoWork subroutines). It's maybe not the most sensible output, but is shows the state of all 3 DoWorks as each one finishes, i.e. that the longer lasting jobs are part way through when the the shorter jobs finish.
Code:
TextWindow.WriteLine("Total = "+total1+" : "+total2+" : "+total3)
TextWindow.WriteLine("Count = "+num1+" : "+num2+" : "+num3)