PThread

Joel Sherrill joel.sherrill at OARcorp.com
Wed May 3 17:54:37 UTC 2000


Nick.SIMON at syntegra.bt.co.uk wrote:
> 
> I think Yi is asking if a thread created with the posix API is "really" an
> RTEMS task.  To which I believe the answer is yes (not that I've used Posix
> API).

Technically all user task/thread APIs are wrappers for 
SuperCore Threads.  They just present different calling
sequences for  managing them.  

For example, an RTEMS Classic task can be created without
floating point context.  You don't have this flexibility
when creating tasks/threads with the other APIs.
 
> -- Nick Simon
> 
> > -----Original Message-----
> > From: Joel Sherrill [mailto:joel.sherrill at OARcorp.com]
> > Sent: 03 May 2000 17:45
> > To: Gu, Yi (Yi)** CTR **
> > Cc: 'rtems-users at oarcorp.com'
> > Subject: Re: PThread
> >
> >
> > "Gu, Yi (Yi)** CTR **" wrote:
> > >
> > > Is PThread compatible with RTEMS native task?
> >
> > I do not understand the question.
> >
> > RTEMS has support for 3 APIs:
> >   - Classic RTEID API             (on by default)
> >   - POSIX API (includes pthreads) (--enable-posix)
> >   - uITRON API                    (--enable-itron)
> >
> > The POSIX API has threads that are POSIX 1003.1b
> > compliant.  That makes them compatible with POSIX
> > threads packages on numerous UNIX flavors.
> >
> > Threads/tasks created with any of the APIs can use
> > services from the other APIs.  For example, Classic
> > API tasks can block on a POSIX mutex.
> >
> > > Yi
> >
> > --
> > 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
> >

-- 
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