1837245 Members
5129 Online
110115 Solutions
New Discussion

Re: pthread error

 
Mike Burk
Advisor

pthread error

anyone seen this error before?

pthread_setschedparam failed, OS says: not owner^M

This happens when I run an executable that I compiled. The source is Ada 95 code. The permisions are 777. I am the owner of the file.

MB
1 REPLY 1
Rita C Workman
Honored Contributor

Re: pthread error

Did a little reading and the one thing I noticed (may not be what you need..but..) was this:

Mutexes The mutual exclusion lock is the simplest and most primitive synchr onizationvariable. It provides a single, absolute owner for the section of code (thus a

critical section) that it brackets between the calls to pthread_mutex_lock()and

pthread_mutex_unlock(). The first thr ead that locks the mutex getsownership, and any subsequent attempts to lock it will fail, causing the calling

thread to go to sleep.


Maybe it will-maybe not,
Rita