OS is like any software burned in ROM and executed from RAM by the processor.
A good course about RTOS and can how it is used is @ Embedded Tips from Amr Ali: RTOS
OS is like any software burned in ROM and executed from RAM by the processor.
A good course about RTOS and can how it is used is @ Embedded Tips from Amr Ali: RTOS
RTOS is a part of total code(apart from BOOT code + user firmware/application code).
The entire code has to be burned on to a ROM device(Flash memory). When the system is powered ON, execution starts from BOOT code(residing in the Flash memory) and then depending on the system(typically) the remaining code will be copied to RAM and exectution is transferred to the RAM.