Implement msg receiver and sender in different threads.