Doubt regarding wait fork

In reply to dave_59:

In the above code wait fork is for waiting for the threads and its descendants which are triggered in the current task(which is “a” in the attached code), it is not waiting for the thread which is spawned before (which is “e” in the attached code). Correct me if am wrong.

Regards
Kranthi