This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: pthread_attr_setsched behaviour


On 13:41 Thu 18 Apr     , Michael Kerrisk (man-pages) wrote:
> >> >> This is the best option currently.  I've added Michael Kerrisk to cc;
> >> >> he maintains the man pages.
> >>
> >> I have applied the patch below.
> >
> > IMHO, the additional information would also apply for pthread_attr_setscope
> 
> Manuel -- opinion is not enough ;-). Can you please tell me what facts
> lead you to have the opinion?

because, man 3p pthread_attr_setinheritsched says:

...
       The    following    thread    scheduling    attributes    defined    by
       IEEE Std 1003.1-2001 are affected by the inheritsched attribute: sched-
       uling  policy  ( schedpolicy), scheduling parameters ( schedparam), and
       scheduling contention scope ( contentionscope).
...

But only one scheduling scope (PTHREAD_SCOPE_SYSTEM) is supported in glibc.
So pthread_attr_setscope has currently no effect.

So it doesn't change anything if you call pthread_attr_setinheritsched or not
(at least at the moment). :-)

Thanks,
  Manuel


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]