Tasks v/s Threads

There is no difference - In a FreeRTOS application, every independent thread of execution is a task. See this page for fundamentals of FreeRTOS.

Which examples are you talking about here?

What are those errors?