Hello Ran, On 2018-12-03, Ranran <ranshalit@xxxxxxxxx> wrote: > I've found 2 examples for RT applications: > 1. https://wiki.linuxfoundation.org/realtime/documentation/howto/applications/application_base > 2. https://github.com/emagii/training-materials/blob/master/lab-data/realtime/rttest/data/rttest.c > > In the 2nd example there is no usage of rt priority or threads. > > So, I don't understand: > What makes application RT ? Isn't it required to use RT priority ? If > so, why does the 2nd example doesn't use it ? Real-time scheduling policies and priorities for threads/processes can be assigned externally using chrt(1). Many times this is the preferred method for assigning real-time attributes because such values usually depend on the entire system and not just on the application itself. Also, you should be aware that writing real-time applications is more than just setting priorities. Which API's and resources and how they are used play an important role. Even non-real-time applications may need to be considered if they are sharing resources with real-time tasks. John Ogness