management of threaded applications