Question
Hi,-Assume all your tasks raised a GPIO pin high when they start being run and lower it when theyve finished their work. They then use
Hi,-Assume all your tasks raised a GPIO pin high when they start being run and lower it when theyve finished their work. They then use vTaskDelayUntil() to allow the task to run for the appropriate fixed amount of time. You have Task A running every 5ms at priority 1 and using 1.9ms of CPU time and Task B running every 3ms at priority 2 and using 0.9ms of CPU time. Assume the scheduler has no delay.
Q-Draw a graph of what the GPIO pins of task A and task B would look like starting at time 0 (when both wish to run) and ending at 15ms. Assume that when a task does a DelayUntil the scheduler is run immediately to pick out the next task that should run.
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