Change the names of thread on process in module pwork

Cleanup module pwork