Hi All,
for fork join_none,the spawned processes do not start executing until the parent thread executes a blocking statement or terminates. what is blocking statement ?
Thank you!!
Hi All,
for fork join_none,the spawned processes do not start executing until the parent thread executes a blocking statement or terminates. what is blocking statement ?
Thank you!!
initial begin
fork
begin
$display("Within 1st thread");
end
begin
$display("Within 2nd thread");
end
join_none
$display("1st display after join_none");
$display("2nd display after join_none");
#0;
$display("3rd display after join_none");
end
The 2 $displays after fork join_none are part of parent thread and execute first in source order.
Due to blocking statement #0 the parent thread blocks and as a result the 2 $displays within fork join_none execute ( in any order )