In reply to kathula venkatesh:
It behaves as you have coded the monitor. And the monitor needs a forever loop. But you do not show the details how you are putting the transaction together.
What is your problem? Does the simulation not come to its end?