Controlling fork join_none threads execution

In reply to mseyunni:
In my opinion, the definition of the problem is insufficient. What is:

1.) duration of the inner loop?
2.) Do you intend to terminate the inner loops at the end of some duration? Or will they run to completion?
3.) In your last sentence you stated that you wanted to wait for the first iteration of the outer loop to complete before beginning the next iteration. If that is what you want, why do you need an inner and outer loop at all? Just fork the outer and inner loops off with a fork/join.

Ignoring my confusion…I would simply state that if you use fork/join instead of fork/join_none on the inner loops, then move the wait fork so that it executes after completion of the inner loop, that may be a solution, to a problem I don’t fully understand :)