Initialize the thread in the thread manager