Chapter 2 Real-Time Systems Concepts Foreground/Background ...
Chapter 2 Real-Time Systems Concepts Foreground/Background ...
Chapter 2 Real-Time Systems Concepts Foreground/Background ...
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Critical Section• The critical section– A piece of code which cannot be interrupted during execution• Cases of critical sections– Modifying a block of memory shared by multiple kernel services• Process table• Ready queue, waiting queue, delay queue, etc.– Modifying global variables used by kernel• Entering a critical section– Disable global interrupt - disable()• Leaving a critical section– Enable global interrupt - enable()2-32-4