Actually, the UI code contain loop condition, therefore, the three
threads: message listening thread, chatter detecting thread and chatting
responding thread should be invoked predated to UI thread.