N
nothing
Hi,
I'm having troubles setting the priority of a p thread.
I get a segmentation fault when i do following:
I'm not understanding, shouldn't this work just fine?
What am I doing wrong?
Thank you!
Ron
I'm having troubles setting the priority of a p thread.
I get a segmentation fault when i do following:
Code:
pthread_t *ss_tid; //declaration
ss_tid = (pthread_t*)malloc(sizeof(pthread_t));//do the memory allocation
struct sched_param param; //declaration
memset(¶m, 0, sizeof(param)); //allocation
pthread_setschedparam(*ss_tid, SCHED_RR, ¶m); // HERE I GET
SEGMENTATIONFAULT
What am I doing wrong?
Thank you!
Ron