$monitor

If a code having more than one $monitor does it work all the $monitors?

In reply to anvesh dangeti:

No, there can be only one active $monitor at a time; only useful for simple debugging.

This system task is left over from when the first implementation of Verilog was an interactive language and this was a debugging command. Now tools give you much better ways of viewing the activity of your simulation.