<div dir="ltr"><div><div><div>Greetings,<br><br>In VxWorks 5.5 we use taskLock()/taskUnlock() to stop the possibility of preemption for a critical region of code. This doesn't stop interrupts as described here: <a href="http://www.vxdev.com/docs/vx55man/vxworks/ref/taskLib.html#taskLock" target="_blank">http://www.vxdev.com/docs/<wbr>vx55man/vxworks/ref/taskLib.<wbr>html#taskLock</a><br><br></div>What would be the recommended approach in rtems? Using semaphores would not prevent a higher priority thread from preempting me.<br><br></div>Thank you,<br></div>-Matt<br></div>