Embedded Software Engineer Question:

Download Job Interview Questions and Answers PDF

Please explain what is semaphore?

Embedded Software Engineer Interview Question
Embedded Software Engineer Interview Question

Answer:

Semaphore is actually a variable or abstract data type which controls access to a common resource by multiple processes. Semaphores are of two types -

☛ Binary semaphore – It can have only two values (0 and 1). The semaphore value is set to 1 by the process in charge, when the resource is available.
☛ Counting semaphore – It can have value greater than one. It is used to control access to a pool of resources.

Download Embedded Software Engineer Interview Questions And Answers PDF

Previous QuestionNext Question
Explain difference between RISC and CISC processor?Tell me what happens when recursive functions are declared inline?