In reply to dave_59:
Hi Dave, What's the difference if we code "automatic int j = i" inside the fork, or outside the fork ?
for(int i=0;i<5;i++)begin
fork
automatic int j = i;
my_task1(j);
my_task2(j);
join_none
end
for(int i=0;i<5;i++) begin
automatic int j = i;
fork
my_task1(j);
my_task2(j);
join_none
end