4 ms·
Preemption can happen even outside of system calls of course, but I guess my takeaway has been to just avoid calling into the system where a lot of things can h
by jstimpfle 5y ago
Preemption can happen even outside of system calls of course, but I guess my takeaway has been to just avoid calling into the system where a lot of things can happen that I don't really understand or control. That, plus setting my threads to high-priority and possibly pinning them to the right cores.
- xxs 5y ago>That, plus setting my threads to high-priority and possibly pinning them to the right cores. What language was that - [normally] Java does not respect priorities at all for instance. Running with higher priority may require root as well.
- jstimpfle 5y agoLanguage was C, running as root on some Linux 3.x on some ARM/FPGA development board. By setting threads to high-priority I mean something like pthread_setschedparams(... SCHED_FIFO ...).