Please see the newer thread about this topic: A clean RTOS for the Raspberry pi 3 and 4?
There are community contributed ports of FreeRTOS for Raspberry Pi’s, however MCUs are much better suited and simpler to learn FreeRTOS than the Cortex A processors on the RPi 3/4.