Make a thread a handle its state