This is the mail archive of the libc-hacker@sourceware.cygnus.com 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]

Re: linuxthreads question


Roland McGrath <roland@frob.com> writes:

> I contend that this is such a case.  In support of this I cite 1003.1-1996
> 2.4 ll 922-925 (p 36), which defines ENOTSUP to mean, "The
> implementation does not support this feature of the standard."

The problem is that this is really a situation which is not (yet)
supported.  No user beside root so far can change the priority of the
threads but this is no general problem, it's because we still have no
complete capability implementation.  The kernel returns an error code
which says EPERM but this error message really means that "changing
priorities is not supported for normal users".  It's not supported
since the detailed methods to control this are missing.  It does not
fail because there is a general permission problem and normal users
are never allowed to do this.

Anyhow, I don't think pthread_attr_setschedpolicy should provide this
error code.  But fixing the pthread_create code is really hard.

-- 
---------------.      drepper at gnu.org  ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com   `------------------------


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