What are the steps i need to avoid missing very time critical operations. For example the case of reading hall values and updating the switching table. Is it like i have to cut down all other functionality. In which interrupt should i put them to get the best performance? I know it is lacking lot of details but some guidelines will help me. How is it possible that normal software cannot do an RTOS can do it?