Which method registers a thread in a thread scheduler?