how can i pause a thread and restart later??

Thank you,
Guilherme Costa