Nokia interview question

How to manage thread life cycle?