摘要
异步调用是一种非阻塞式调用方式,用于在处理比较耗时的任务时保证程序性能不受到影响。实现异步调用的关键在于要解决三个技术问题,它们分别是程序阻塞问题、异步消息的传递问题和超时问题。本文介绍的开发方法和步骤采用并发线程、回调机制和计时器圆满地解决了异步调用的技术难题。
The asynchronous invocation is a non-blocking call, which is used to process the time- consuming task while keeping high program performance. Blocking, asynchronous messaging and timeout are the three key problems to implement asynchronous invocation and this article proposes the approach to solve these problems by Java.
出处
《软件工程师》
2013年第10期26-28,共3页
Software Engineer
关键词
程序阻塞
异步消息传递
Java回调
线程
异步调用
blocking
asynchronous messaging
timeout
java callback
thread
asynchronous invocation