<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">Dear list,</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">I’m a bit confused about the priorities used with POSIX in RTEMS 4.12.</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">In the system config I am using the POSIX initialization:</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><div id="bloop_customfont" style="margin: 0px;">extern void *EPICS_WITH_POSIX_Init(void *argument);</div><div id="bloop_customfont" style="margin: 0px;"><br></div><div id="bloop_customfont" style="margin: 0px;">#define CONFIGURE_POSIX_INIT_THREAD_TABLE</div><div id="bloop_customfont" style="margin: 0px;">#define CONFIGURE_POSIX_INIT_THREAD_ENTRY_POINT EPICS_WITH_POSIX_Init</div><div id="bloop_customfont" style="margin: 0px;"><br></div><div id="bloop_customfont" style="margin: 0px;">Requesting the task priority in EPICS_WITH_POSIX_Init() I get Prio “2” whitch looks like “RTEMS_HIGH_PRIO” ?</div><div id="bloop_customfont" style="margin: 0px;"><br></div><div id="bloop_customfont" style="margin: 0px;"><div id="bloop_customfont" style="margin: 0px;">void *</div><div id="bloop_customfont" style="margin: 0px;">EPICS_WITH_POSIX_Init (void *argument)</div><div id="bloop_customfont" style="margin: 0px;">{</div><div id="bloop_customfont" style="margin: 0px;"><div id="bloop_customfont" style="margin: 0px;"> int policy;</div><div id="bloop_customfont" style="margin: 0px;"> struct sched_param param;</div><div id="bloop_customfont" style="margin: 0px;"><br></div><div id="bloop_customfont" style="margin: 0px;"> if (pthread_getschedparam(pthread_self(), &policy, ¶m) != 0)</div><div id="bloop_customfont" style="margin: 0px;"> delayedPanic("pthread_getschedparam failed”);</div><div id="bloop_customfont" style="margin: 0px;"><br></div><div id="bloop_customfont" style="margin: 0px;"> printf(" main priority = %d\n", param.sched_priority);</div></div><div id="bloop_customfont" style="margin: 0px;"><br></div><div id="bloop_customfont" style="margin: 0px;">leads to the output:</div><div id="bloop_customfont" style="margin: 0px;"><br></div><div id="bloop_customfont" style="margin: 0px;"><div id="bloop_customfont" style="margin: 0px;">...</div><div id="bloop_customfont" style="margin: 0px;"> main priority = 2</div><div id="bloop_customfont" style="margin: 0px;"><br></div><div id="bloop_customfont" style="margin: 0px;">***** RTEMS Version: rtems-4.11.99.0 (PowerPC/Generic (classic FPU)/beatnik) *****</div><div>…</div><div><br></div><div>I expected Prio 254 or 253 because at Posix higher priorities -> higher value.</div><div><br></div><div><br></div><div>What do I think wrong here?</div><div><br></div><div>Heinz</div></div></div></div><div id="bloop_sign_1490879049488538112" class="bloop_sign"><div style="font-family: Helvetica, Arial;"><br></div></div></body></html>