$display

In reply to SHRI12326:

I think it is race condition between the blocking assignment and display statement. There is no guarantee that “a” should get 6 first [as you written before] and display statement executes next.