FreeRTOS and Raspberry Pi OS both can be installed on Raspberry Pi boards.
Are they two independent operating systems that fits on Raspberry Pi boards ? I mean any of the two operating system can be used on the Raspberry Pi boards ? We don’t both of them at the same time ?
Thank you for confirming that need to have one operating system at a time.
I have watched some tutorials of FreeRTOS that basically includes how to run scheduling on dual core processors, multi tasking by running threads, and the concept of using shared resources like mutex etc.
Next question is which operating system is superior then the other, FreeRTOS or Raspberry Pi OS.
Can we do/run all the functions/tasks in Raspberry Pi OS using Python that are offered by FreeRTOS ?
This is a bit of an apples to oranges comparison. FreeRTOS is a Real Time Operating System while RPI OS is not. This makes these fundamentally different in how they behave. To add to this, both of these OSes aspire to do very different things. FreeRTOS is designed to be extremely lightweight to allow it to work on the smallest devices (16 bit, kilobytes of RAM…you get the idea). This small footprint also allows FreeRTOS to run on more powerful devices like a Raspberry PI.The Raspberry PI OS is a much larger operating system. It requires gigabtyes of install space but has often useful features like a UI, terminal, and other Linux-based utilities.
You will not be able to run FreeRTOS tasks directly in the Raspberry PI OS. You should be able to get similar behavior to the FreeRTOS OS but it may never perfectly match because of how the underlying scheduling works. A good example of this is our POSIX simulator. Behavior is close but will never truly match standalone FreeRTOS.