Select a thread.