Create a new thread.