Fork Join tricky example
Companies Related Questions, System Verilog 0 CommentsLets write some code module fork_test; initial begin for (int j=0; j<3; j++) begin fork $display(j); join_none end end endmodule Output 3 3 3 It outputs 3 because there is only one variable j shared by all the threads, and its value is 3 before any of the threads start executing. None of the