For loop inside fork join_none

In reply to pawan:

Are you calling thread3(j) twice in the second fork … join_none?
Post your code here.