function do get thread name