I'm about to develop an FreeRTOS based embedded system that will run on a ESP32 chip. According to the API Reference I can create tasks and as well as pthreads.
Is there any rule of thumb that tells me if I should implement a functionality as a task or as thread? For example: If I'd like to handle three peripherals paralelly (just simple reading, so: short code, low performace, nearly any memory needed), I should create a new task or a new thread?