Thread behaviour using pthread



Hi guys,

I have tried using pthread library on Linux (2.6 kernel) and found that
setting parameters in the attr structure
do not seem to change anything in the thread behaviour - changing sched
policy (RR, FIFO) or RT priority. So, it seems that any changes to attr
structure for a thread are transparent. The only way I could change the
behaviour is by using process level calls like sched_setscheduler etc.on a
thread.

Is there anything I am missing?

Thanks,
Igor


.



Relevant Pages

  • Re: Thread behaviour using pthread
    ... setting parameters in the attr structure ... do not seem to change anything in the thread behaviour - changing sched ... otherwise the thread created inherits the schedpolicy and schedparam ...
    (comp.os.linux.development.apps)
  • Re: Thread behaviour using pthread
    ... setting parameters in the attr structure ... do not seem to change anything in the thread behaviour - changing sched ... policy (RR, FIFO) or RT priority. ...
    (comp.os.linux.development.apps)