Yes, i able to renaming the thread dynamically. But if i created threads dynamically by defining task template in local scope, with task index 0 and parameter as pointer to task template, if first thread renamed it renames all threads with common name.
If I rename the thread created from task template, with application-unique numbers, only that specified thread name only changed.
I followed below pseudo code to rename the thread,
TASK_TEMPLATE_STRUCT_PTR template_ptr;
template_ptr = _task_get_template_ptr(tid);
strcpy(template_ptr->TASK_NAME, "new_name");