Please explain what is semaphore?
Submitted by: MuhammadSemaphore 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.
Submitted by: Muhammad
☛ 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.
Submitted by: Muhammad
Read Online Embedded Software Engineer Job Interview Questions And Answers
Top Embedded Software Engineer Questions
☺ | Explain me can we use printf inside ISR? |
☺ | Tell me can we use any function inside ISR? |
☺ | Tell me what are the qualifiers in C? |
☺ | Tell me how many types of IPC mechanism you know? |
☺ | Tell me why embedded system is useful? |
Top Best Engineering Categories
☺ | Mechanical Engineering Interview Questions. |
☺ | Civil Engineering Interview Questions. |
☺ | Chemical Engineering Interview Questions. |
☺ | Electrical Engineering Interview Questions. |
☺ | Automobile Engineering Interview Questions. |