If you delete a task in FreeRTOS, the code inside the memory is gone. Is this statement true? Explain your answer.
Please explain why it is a good idea to minimize the execution time of ISR.
Explain the difference between semaphore and mutex?
For the priority of gatekeeper task, should you assign a high priority or low priority? Please explain.
Solution
If you delete a task in FreeRTOS, the code inside the memory is gone. Is this statement true? Explain your answer.
Answer
False
Explanation
When you delete a task the task will be removed from all
ready
clocked
suspended
and
event lists.
---
Please explain why it is a good idea to minimize the execution time of ISR.
if you dont minimize the execution time of ISR System timing problems could happen the reason is that it can be missed if it is not minimized
Reducing the interrupt response latency in case for processor to respond to hardware interrupt
--
Explain the difference between semaphore and mutex?
The main difference is that signalling mechanism
The proceeses will perform wait() & signal() operation to
indicate whether they are acquiring/releasing the resource
Mutex is locking mechanism, the process should acquire the lock on mutex object if it wants to acquire the resource
---
For the priority of gatekeeper task, should you assign a high priority or low priority? Please explain.
Answer
Higher priority
Explanation
The reason is that it is protecting entry from lower priority
tasks
---
all the best
If you delete a task in FreeRTOS, the code inside the memory is gone. Is this...