11.07.2015 Views

Chapter 2 Real-Time Systems Concepts Foreground/Background ...

Chapter 2 Real-Time Systems Concepts Foreground/Background ...

Chapter 2 Real-Time Systems Concepts Foreground/Background ...

SHOW MORE
SHOW LESS

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

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!