I have 2 question
- What will happen to the child process forked by fork-join_none if parent process does not encounter any blocking statement and exit. Are they killed if the parent process exit without blocking ? For example
module exm();
task example_task();
#5 $display("Before fork join");
fork
#10 $display("inside fork");
#15 $display("still inside fork");
join_none
endtask
initial begin
example_task();
end
endmodule
- What will happen if the time duration for which parent process is blocked is not sufficient to complete forked child process in fork-join_none. For example
module exm();
task example_task();
#5 $display("Before fork join");
fork
#10 $display("inside fork");
#15 $display("still inside fork");
join_none
#5; // This time is not sufficient to complete all process forked by fork-join_none
endtask
initial begin
example_task();
end
endmodule