Linux – c++ programming on a Real-time linux OS

clinuxlinux-kernelreal time

Is there any gotcha's programming RealTime C++ applications (user space and linux drivers) on RT linux kernel compare to a std linux kernel?

The Linux RT patch applies changes to kernel scheduler, semaphores, muteces, etc, and I'm wondering if these changes are transparent to the developer? or would one need to take special care in writing such application?

Best Answer

Depends - if you actually develope kernel space drivers that use mutexes and semaphores you should give the patches a quick review. As developer that is your responsibility, no answer on a website will solve that issue.

If you are mainly developing userspace software, these changes do not affect you, as you only wrangle with the kernel interfaces, which are supposed to be stable.

Keep in mind that userspace applications are usually not recommended for strong real time requirements.

Due to the fact that most major distributions supply a RT kernel I conclude: No, nothing special beyond the RT fun is required - general keep in mind things: https://rt.wiki.kernel.org/index.php/HOWTO:_Build_an_RT-application

Related Question