Describe a pattern that is not the factory pattern? How is it used and when?
Answer / Shailendra Kumar Dwivedi
One example of a design pattern different from the Factory Pattern is the Singleton Pattern. This pattern ensures that a class has only one instance, providing a global point of access to it. It is typically used when exactly one object is needed to coordinate actions across the system or when expensive object creation must be minimized.nnFor example, consider a logging utility in an embedded system. A singleton can ensure that only a single logging instance exists, directing all log messages to a central location for efficient processing and analysis.
| Is This Answer Correct ? | 0 Yes | 0 No |
What do you mean by interrupt latency?
Explain some of the commonly found errors in embedded systems?
Do you know what is priority inheritance?
What are the different types of buses used by the embedded systems?
Tell me what are buses used for communication in embedded system?
Have you developed software testing procedures for new systems and performed qa, quality assurance, or audits?
Name three primary attributes of object-oriented design. Describe what they mean and why they're important.
Explain me what is the difference between microprocessor and microcontroller?
Can structures be passed to the functions by value?
Tell me what is the difference between hardware design and software design?
What type of scheduling is there in rtos?
What is return type of isr?