A bit of an OT comment here:
As is common in every RTOS thread I read here, there are a number of users trying to explain RTOS to people that jump to the conclusion that an RTOS is a magic bullet to make everything real time. It is not. You can still develop bad code that performs nowhere in real time on an RTOS.
However, in the right hands, an RTOS can be a very powerful tool to help a decent programmer develop complex applications that execute with predictable performance (which is really what RT implies) without using complicated patterns. Essentially, the RTOS is a framework for this and imho should be seen as that. Everything else they may (or may not) provide is just convenience.
It's all about perspective! I thought you just wrote total BS and was about to write a "someone's wrong on the internet!" style reply, but then again, from a certain perspective, what you wrote makes perfect sense.
RT is a qualifier for the OS part! I can't stress this enough.
Like a red hammer. You need something red. A bucket of red paint is most flexible and efficient way to get most of the redness. This is bare metal. But you might be used to hammers, and frankly, hammers have many advantages. But a normal hammer can't do because you need red. So red hammer it is!
In level of realtime-ness:
worse <--> better
OS - RTOS - bare metal
This is where inexperienced people get confused. They think RTOS is key for real time things. It's true for Windows software developer, and complete opposite to someone who has written code for PIC.
If what you are used to is linux or BSD, RTOS will be total magic of being able to do timing critical things!
If you are used to write bare metal microcontroller code and are fluent writing interrupt based designs, using an RTOS will only make it perform worse, timing-wise, adding timing bloat and delays, and reducing the control you have.
The key is, RTOS is
good enough for most real-time MCU applications,
and it is an OS. The latter is the reason it is used. The RT part is just the "not THAT bad" qualifier.
Hope this helps people who struggle with the general idea.