摘要: 针对Modem发送短信在实时性、并发性及完整性等性能上存在的缺陷,提出基于多代理、多优先级队列的短信实时并发算法。该算法采用多代理、多优先级队列、线程池等技术手段保证短信控制的实时性、并发性及数据完整性,在算法中使用优先级,使某些信息能够优先发送。通过改造排队论模型和实验对算法进行验证,并将该算法应用于SMAS系统,系统运行结果表明,该算法大幅提高了其发送和接收短信的速度与效率,实现了短信实时性和并发性的目标,优化了SMAS系统的整体性能。
关键词:
多代理,
多优先队列,
优先级队列,
实时,
并发
Abstract: Confronting the deficiencies in real-time, concurrency and integrity and so on for sending short message with Modem, the real-time and concurrent algorithm for short message based on multi-Agent and Multi-Priority Queue(Multi-PQ) is introduced. Technological measures such as multi-Agent, Multi-PQ and thread pool are adopted to control the message for real-time, concurrency and integrity. And the PQ is used in algorithm to send some message. The algorithm is verified by improving queuing theory and experiments. It is used in SMAS system, result shows that the speed and efficiency is quickly increased after using the algorithm. The aim for real-time and concurrency is achieved, and the performance of the SMAS system is improved.
Key words:
multi-Agent,
Multi-Priority Queue(Multi-PQ),
priority queue,
real-time,
concurrent
中图分类号:
崔慎智, 陈志泊. 基于多代理和多优先队列的短信实时并发算法[J]. 计算机工程, 2011, 37(3): 278-280,283.
CUI Shen-Zhi, CHEN Zhi-Bo. Real-time and Concurrent Algorithm for Short Message Based on Multi-Agent and Multi-Priority Queue[J]. Computer Engineering, 2011, 37(3): 278-280,283.