In reply to S.P.Rajkumar.V:
In reply to pawan:
Are you calling thread3(j) twice in the second fork … join_none?
Post your code here.
for(int i=0; i<32; i++) begin
fork
automatic int j=i;
capture_lookup(j);
join_none
end
this capture lookup is being called 2 time for each of 32 values capture_lookup is a task which has a forever loop inside.