KleOS
KleOS brings together Arduino, FreeRTOS and Arduino-mk to you.
FreeRTOS is the glorious tool behind getting such behaviour.
And as you become an Arduino power user you find the IDE too clumsy, so why don't you compile your way (e.g. in the terminal) using your preferred source code editor? Arduino-mk is the glorious tool behind this behaviour.