How many ways shared data problem can be solved?

1. Disabling interrrupts – to be used when data is shared between ISR and task code. note that scheduler would not be able to switch tasks as interrupts are disabled.
2. Using semaphore – can be used when data is not to be used in ISR as semaphores are not allowed in ISR.
3. Disabling task switches – to be used when data is not shared among ISR and task code.

Related Post

Initializing Array in JavaScript
Static in java
JSON communication between server and client Part1
Implicit conversion from data type varchar to money is not allowed
What is priority inversion?

Comments

Leave a Reply