Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Read through the FreeRTOS documentation (http://www.freertos.org) and answer the following questions. a. What is the required prototype for all task functions? b. Which has a
Read through the FreeRTOS documentation (http://www.freertos.org) and answer the following questions. a. What is the required prototype for all "task" functions? b. Which has a higher priority, a task with priority "1" or priority "2"? C. Priority "O" tasks are special in that they interact with the idle task. What is the idle task and what does it do? Say you only have one task ready and it has a priority of 0 and could use as much CPU as was available. What percent of the time would it run? d. What does the vTaskDelay()function do? Your answer should include the terms "Ready" and "Blocking" e. What does the vTaskDelayUntil()do? How does it differ from vTaskDelay()1? A more common use of semaphores is the producer-consumer model. In that case, one task might be (for example) reading serial data and putting it into a packet. Once that packet is finished, there is another task that handles the data (maybe the data is from a camera and the other task processes it looking for a certain object). Why would one want to use a semaphore in a situation like that (rather than just having one task does all the work)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started