Forum Discussion
Altera_Forum
Honored Contributor
19 years agoHi ShaChris23,
> printf("current prio: %d\n", pthread_attr_getschedparam( &thread_attribute, &thread_param )); pthread_attr_getschedparam doesn't return the _priority_, it returns zero on success, non-zero otherwise. You need to look at the returned thread_param. Regards, --Scott