<div dir="ltr">Great, thanks for the answers. </div><div class="gmail_extra"><br clear="all"><div><b>Ing. Nicolás Alvarez</b><div><b><br></b><div>cel: 03548-15638454</div><div><span style="color:rgb(85,85,85);font-family:Arial,Helvetica,'Nimbus Sans L',sans-serif;font-size:13px;line-height:15px;background-color:rgb(255,255,255)"><a href="http://ar.linkedin.com/in/ingalvarez/en" target="_blank">http://ar.linkedin.com/in/ingalvarez/en</a><br>
</span></div></div></div>
<br><br><div class="gmail_quote">On Fri, Aug 30, 2013 at 6:06 PM, Joel Sherrill <span dir="ltr"><<a href="mailto:Joel.Sherrill@oarcorp.com" target="_blank">Joel.Sherrill@oarcorp.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Gedare is not mistaken. Classic tasks can make POSIX thread calls and vice versa.<br>
<br>
Beware the pthreads are defined to exit silently deleting themselves and classic tasks consider this a fatal error.<br>
<div class="HOEnZb"><div class="h5"><br>
Gedare Bloom <<a href="mailto:gedare@rtems.org">gedare@rtems.org</a>> wrote:<br>
<br>
<br>
Also note that you would need to "configure" your application<br>
correctly so that the resources are available to create tasks of both<br>
types, e.g.<br>
#define CONFIGURE_MAXIMUM_TASKS 2<br>
#define CONFIGURE_MAXIMUM_POSIX_THREADS 3<br>
<br>
if you have 2 classic tasks and 3 pthreads.<br>
<br>
On Fri, Aug 30, 2013 at 4:22 PM, Gedare Bloom <<a href="mailto:gedare@rtems.org">gedare@rtems.org</a>> wrote:<br>
> Yes. If I'm not mistaken, RTEMS tasks can also make posix calls.<br>
><br>
> Posix thread priorities are mapped to the RTEMS internal priority<br>
> range of 0-255 (realistically, 1-254, since 0 and 255 are reserved).<br>
> Note that the pthread priorties are inverted, so a 1 becomes 254, the<br>
> lowest schedulable priority in the system. After the mapping, the<br>
> scheduler sees both types of tasks as the same. You can inspect how<br>
> this is done when a pthread is created in the<br>
> cpukit/posix/src/pthreadcreate.c.<br>
><br>
> -Gedare<br>
><br>
><br>
><br>
> On Fri, Aug 30, 2013 at 3:13 PM, Nicolás Alvarez <<a href="mailto:nicoalar.22@gmail.com">nicoalar.22@gmail.com</a>> wrote:<br>
>> Hi all,<br>
>><br>
>> It is possible to use in one app both kind of task? What is the scheduler<br>
>> behavior?<br>
>><br>
>> Regards,<br>
>><br>
>> Ing. Nicolás Alvarez<br>
>><br>
>><br>
>> _______________________________________________<br>
>> rtems-users mailing list<br>
>> <a href="mailto:rtems-users@rtems.org">rtems-users@rtems.org</a><br>
>> <a href="http://www.rtems.org/mailman/listinfo/rtems-users" target="_blank">http://www.rtems.org/mailman/listinfo/rtems-users</a><br>
>><br>
<br>
_______________________________________________<br>
rtems-users mailing list<br>
<a href="mailto:rtems-users@rtems.org">rtems-users@rtems.org</a><br>
<a href="http://www.rtems.org/mailman/listinfo/rtems-users" target="_blank">http://www.rtems.org/mailman/listinfo/rtems-users</a><br>
</div></div></blockquote></div><br></div>