摘要
异步回调是一种非常高效的软件技术,它允许代码在客户程序和组件中并行执行,组件在合适的时候会通知客户程序,它的任务已经告一段落,并让客户程序取回想要的结果,无需客户程序反复费时地查询。因此,这种技术减少了代码阻塞,提高了程序执行的时效性。本文通过创建温度采样组件,演示了异步回调技术的精彩之处,希望能对同行有所帮助。
The Asynchronous Call-back is a very efficient software technology. It allows the concurrent execution of main program and component. Component will notify the main program that it finishes some tasks in some time. Then, the main program can take back what it needs, and there is no need for the main program to query frequently. So this technology reduces the blocks of code execution and improves the effect of program. This article demonstrates the wonderful feature of Asynchronous Call-back technology by creating a component of temperature sampling, and hopes this article can be helpful to the programmers in this field.
出处
《工程与试验》
2010年第4期81-83,共3页
Engineering and Test
关键词
异步回调
温度
组件
Asynchronous Call-back
temperature
component