Is fork join and fork join_any with wait fork perform the same operation?

In reply to kmohansan:

In reply to perumallatarun:
I had two blocks A & B to be executed. Block A to be executed if any one of the threads in the fork is executed. And another Block B to be executed after all the threads in the fork are executed. So, I placed Block A after fork … join_any; and Block B after fork … join_any+wait fork;

Don’t forget that Block A and Block B also are affected each other in some cases, then be careful where you place Block A and Block B after fork block.