thread based process tree