[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Posix api and Rtems-Shell



rtwas wrote:
> 
> I'd like to use the *Shell* api with Posix. Reading the docs I see that 
> when Shell is init'd "rtems_shell_init()"
> that a *Task* is launched. Posix uses *Threads*. Can Tasks and Threads 
> coexist in the same executable?

Yes. Take a look at:

http://www.rtems.org/wiki/index.php/Image:RTEMSArchitecture.png

and you will see the API layer with SAPI, Classic API, POSIX and more above 
the SuperCore. All tasks or threads are managed by the SuperCore and can coexist.

> If so
>  it implies some other possible contentions, like initializing both 
> *Classic Api* and *Posix Api* and their associated
> *entry points*.

Yes you need to initialise the Classic API and the POSIX API.

Regards
Chris