This is the code
module aks();
initial begin
rad temp ;
temp = new;
temp.fork_ll();
end
endmodule
//This is Class Which is used in above module
class rad;
task fork_ll();
fork
begin:MYLOOP
$display("%t %M:I AM HERE ",$time);
disable SECOND;//I expected it should kill the SECOND BLOCk
end:MYLOOP
begin:SECOND
$display("%t %M:STEP 2 ",$time);
#10us $display("%t %M:STEP3 ",$time);
end:SECOND
join
endtask
endclass
I Expected the Output As
I AM HERE
STEP 2
But Actually i am getting Output as
0 $unit_0x5d440f27.rad.fork_ll.MYLOOP:I AM HERE
0 $unit_0x5d440f27.rad.fork_ll.SECOND:STEP 2
10000 $unit_0x5d440f27.rad.fork_ll.SECOND:STEP3
Why disable SECOND is Not Killed the SECOND block of statement