add two thread to monitor the transaction