Let's compare and contrast single-threaded, multi-threaded, and event-driven programming models with an example.
让我们用例子来比较和对比一下单线程、多线程以及事件驱动编程模型。
The event-driven programming needed to handle such incoming messages from a service can complicate an application significantly.
处理这些来自服务的传入消息所需要的事件驱动编程技术可能会极大提高应用程序的复杂程度。
Networking applications often have exactly these properties, which is what makes them such a good fit for the event-driven programming model.
网络应用程序通常都有上述这些特点,这使得它们能够很好的契合事件驱动编程模型。
Node's event-driven programming paradigm means that you don't need additional libraries in order to make concurrency work, and that's good news for developers eyeing multicore hardware.
Node 的事件驱动编程方式意味着,您无需添加额外的库来处理并发性,这对关注多核硬件的开发人员来说是个好消息。
Callbacks are a fundamental part of event-driven programming and are the way that the reactor indicates to an application that events have completed.
回调是事件驱动编程模型中的基础,也是reactor通知应用程序事件已经处理完成的方式。
Use event-driven programming instead of multi-threaded programming.
If you've ever done any event-driven programming in the past, I think you'll find signals to be a refreshing change from the common practice of setting up an explicit event processing loop.
如果您过去曾经编写过事件驱动的程序,那么我认为您会发现,对于设置显式事件处理循环这一常见做法,使用信号是一个令人耳目一新的变化。
Java related to event-driven programming code
OOP toolkits also enhanced the popularity of event-driven programming (although this concept is not limited to OOP).
面向对象程序设计的思想也使事件处理 式的程序设计更加广泛被应用(虽然这一概念并非仅存在于面向对象程序设计 ) 。
NET pages use a compiled, event-driven programming model that improves performance and enables the separation of application logic and user interface.
NET使用编译的、事件驱动编程模型从而提高运行速度和分离应用程序逻辑和用户界面。
Program source code Java event-driven programming, including events and event sources, event monitoring, registering and processing, internal class listeners, listener anonymous inner classes, events, handling window events, to deal with simple listener interface adapters, mouse events, keyboard events, using the Timer class in animation, learning Java, I believe that would be a very good example program.
Java事件驱动程序设计相关程序源代码,包括事件和事件源、事件的监听、注册和处理、内部类监听器、匿名内部类监听器、处理简单行为的事件、处理窗口事件、监听器接口适配器、鼠标事件、键盘事件、使用Timer类的动画等,学习Java的话,相信会是很不错的范例程序。
Event-driven programming is a programming paradigm in which program flow is determined by external events.
事件驱动编程是一种编程范式,这里程序的执行流由外部事件来决定。
Event-driven programming in Perl
Perl的事件驱动编程