![]() ![]() In object programming, this approach is described by the observer pattern. ![]() The interrupt principle is also used in event driven architecture or in event driven programming. Compared to polling, the interrupt has a better response time because it responds to an event immediately. The advantage of such an approach, in general, is the reduction of the load on the microcontroller, which doesn't have to always check whether the event occurred or not (see polling). It is being sent by software or hardware and requires immediate attention. Generally speaking, interrupt is a special signal for a microcontroller. Interrupt is the mechanism by which the environment notifies microcontroller that something important has just happened. The concept of interrupts is very important in the world of microcontrollers. ![]() This mechanism, in the world of IT, is called the interrupt. Customer can deal with own, more important duties, and will be automatically alerted once the delivery is to be finished. Thus, the customer doesn’t have to worry whether the delivery time has elapsed or whether the delivery man came sooner. Sometimes, the customer is even notified via phone. Solution the original problem with pizza delivery is very simple - when delivery man arrives with pizza, he rings the bell or knocks the customer's door. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |