This question has been bothering me from a long time, I tried to search online but didn't get any answer. I understand the difference between a normal OS and a RTOS. I wanted to understand what are the additional constraints (if any) imposed on an application programmer for a RTOS ?
For example I have some requirements and need to implement a solution which runs on a normal OS and an RTOS. What aspects should I take care when I am implementing the solution for the RTOS ? Should I profile my code to check the exact memory, processing requirements which I should give to the RTOS scheduler which will perform some feasibility analysis and determine if it can include my application in the existing schedule ?
Can some give me practical examples of how this is done in RTOS like OSE, Windriver etc ?