user image

Pooja Sharma

Job Interview Skills
English
2 years ago

Q28. Explain What Is Semaphore?

user image

Abhishek Mishra

2 years ago

A semaphore is an abstract datatype or variable that is used for controlling access, by multiple processes to a common resource in a concurrent system such as multiprogramming operating system. Semaphores are commonly used for two purposes • To share a common memory space • To share access to files Q29. What Is The Need For An Infinite Loop In Embedded Systems? Infinite Loops are those program constructs where in there is no break statement so as to get out of the loop, it just keeps looping over the statements within the block defined. Example: While(Boolean True) OR for(;;); { //Code } Embedded systems need infinite loops for repeatedly processing/monitoring the state of the program. One example could be the case of a program state continuously being checked for any exceptional errors that might just occur during run time such as memory outage or divide by zero etc.,

Recent Doubts

Close [x]