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