...Can be used only if the thread has a message queue.