I have been trying to start a thread with a high priority. When I do set it to a higher priority then the thread doesn't seem to execute. When I just run the thread with out passing it an attribute it works just fine.
Here is my code:
schedparam.sched_priority = 2;
And here is the start function where I start the thread.
bool CWorkerThread::Start(void *pArg, pthread_attr_t *threadAttr)
rc= pthread_create(&thread, threadAttr, m_pThreadFunc, this);
cout << "thread creation failed" <<endl;