Forum Discussion
Altera_Forum
Honored Contributor
19 years agoPosix thread priority and scheduling..
I would like to create 4 threads, with the following attributes SCHED_FIFO thread 1 has priority value of 99 thread 2 of 99 thread 3 of 50 thread 4 of 20 (where the higher the numb...
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