Default POSIX thread attributes?

Joel Sherrill joel.sherrill at OARcorp.com
Tue Feb 11 19:12:55 UTC 2003



Ralf Corsepius wrote:
> 
> Am Die, 2003-02-11 um 19.16 schrieb Vladimir Nesic:
> > On Tuesday 11 February 2003 16:47, Joel Sherrill wrote:
> > > gregory.menke at gsfc.nasa.gov wrote:
> > > > Vladimir Nesic writes:
> > > >  > Current implementation of pthreads has a strange default
> > > >  > attribute set, which is not documented, and it took me almost a
> > > >  > whole month to find out why an app that worked on Linux stopped
> > > >  > working on RTEMS.
> > > >
> > > > These kinds of bugs can be <very> hard to track down on any
> > > > operating system.  If you rely on default pthread behavior, you're
> > > > going to have lots of problems.  The pthread interface kind of
> > > > sucks in general- its advantage is its sort of portable.
> > >
> > > The standard does not specify the default attributes as I recall.  If
> > > there is some piece of standard documentation RTEMS does not adhere
> > > to, file a PR.
> > >
> > > Otherwise, this falls into the "POSIX didn't cover this" category.
> >
> > OK, I have learnd my lesson, but I don't have POSIX standard, so I had
> > to relay on docs from RTEMS and LINUX. Since RTEMS doesn't say anything
> > about it, a guessed that LINUX docs apply :(
> 
> One valuable source of information is the OpenGroups online
> publications, in particular this document (aka. SUSv3)
> http://www.opengroup.org/onlinepubs/007904975/

Thanks for pointing that out Ralf.  It is a great resource and
if RTEMS does not comply with something you see there, file an 
RTEMS problem report using GNATS.  Please be sure to ignore 
functionality that RTEMS can not support such as fork. :)
 

> Ralf

-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel at OARcorp.com                 On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
Support Available                (256) 722-9985



More information about the users mailing list