receiveMessages can response thread's interrupt