I need to implement a template function of this type. Functions 1 to n has to be executed in parallel on multiple cores. Any suggestions on implementing it the most optimized way???
For(i=1 to 100)
Execute Function n-3;
Execute Function n-2;
Execute Function n-1;
Execute Function n;
Wait till all n functions are completed
I did see parallel_invoke. But they have a limit on number of functions (10) that can be evaluated in parallel (http://www.ddj.com/go-parallel/article/showArticle.jhtml?articleID=21640...).