In reply to srbeeram:
Hi Dave,
in the following code also , still tasks are grand children as they are inside the fork blocks which are children of begin end thread. then is disable fork expected to kill the grandchildren threads (tasks) also. in this case why it is expected. could you please provide the clarifications.
fork : fork_block
begin: begin_block
fork
task1;
join_none
for (;;) begin : for_loop
fork
task2;
join_none
end : for_loop
fork
task3;
join_none
@reset_event disable fork;
end : begin_block
join : join_block