I am pretty naive to the concept of RTOS, so this question might also be naive :)
While reading about task scheduling in RTOS, i came across the concept that the a non preemptive task can be interrupted if it calls schedule()
(On linux based RTOS).
I need to know how actually this function can be called from the c program\application\task? An example will help.