I'm working on a C++ embedded avionics project where we need deterministic execution for a high-priority sensor producer thread. I want to isolate the OS-level scheduling to prevent missed deadlines. My plan is to use POSIX APIs directly in main.cpp like this: Use mlockall(MCL_CURRENT | MCL_FUTURE) to prevent page faults. Elevate the thread using sched_setscheduler with SCHED_FIFO and a priority of 90. Here is the catch: I am running this on a...
Originally asked by Ross_an_Artisan on Stack Exchange (unix) (CC BY-SA 4.0).