Try my free rtos for the Pic 16-bit micros posted on eda board here:
It has documentation that gives you the basics of task switching and multitasking.
It has examples that use mplab sim logic analyzer that show when tasks are running. You dont need any hardware to run the examples, they all run in mplab sim.
Should give you the basics of rtos systems.