Upstart's event-driven model allows it to respond to events asynchronously as they are generated.
Upstart的事件驱动模型允许它以异步方式对生成的事件作出回应。 [2]
This leaves it unable to handle various non-startup-tasks on a modern desktop computer elegantly, including: The addition or removal of USB flash drives and other portable storage or network devices while the machine is running The discovery and scanning of new storage devices, without locking the system, especially when a disk may not even power on until it is scanned The loading of firmware for a device, which may need to occur after it is detected but before it is usable Upstart's event-driven model allows it to respond to events asynchronously as they are generated.
The event-driven model of SAX is useful for XML parsing, but it does have certain drawbacks.
SAX事件驅動的模型對於XML解析很有用,但它確實有某些缺點。
For historical reasons, JavaScript is mainly used for UI processing in browsers. UI development is a typical single-threaded event-driven model, so JavaScript has also formed asynchronous processing as the main programming paradigm.
The execution of "state" is based on the event-driven model. After the execution of stateA, routing messages will be generated and put into EventQueue. The event consumer will fetch messages from EventQueue and execute stateB.
The event-driven model is often a good choice when there are
当我们面对如下的环境时,事件驱动模型通常是一个好的选择:
Conteúdo potencialmente sensível ou impróprio
Os exemplos servem apenas como ajuda na tradução da palavra ou da expressão procurada. Eles não são selecionados ou validados por nós e podem conter linguagem inapropriada. Pedimos que reporte exemplos que devem ser modificados ou que não devem ser exibidos. As traduções potencialmente sensivéis, impróprias ou coloquiais geralmente são marcadas em vermelho ou em laranja.