Advanced Embedded Systems Question:

Download Job Interview Questions and Answers PDF

Explain me what is the purpose of using critical sections?

Advanced Embedded Systems Interview Question
Advanced Embedded Systems Interview Question

Answer:

Critical section allows the process to run in an area that is defined by that process only. It is a sequence of instructions that can be corrupted if any other process tries to interrupt it. This process allow the operating system to give the synchronization objects that are used to monitor the processes that are up and running so that no other process will get executed till the critical region consists of a process that is already running. The example includes removal of the data from a queue running in a critical section and if not protected then it can be interrupted and the data have chances of getting corrupted. The processes exit from the critical section as soon as they finish the execution so that the chances can be given to other processes that are waiting for their chance to come.

Download Advanced Embedded Systems Interview Questions And Answers PDF

Previous QuestionNext Question
Explain what is the function of DMA controlled in embedded system?Please explain DB?