作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2008, Vol. 34 ›› Issue (8): 62-65. doi: 10.3969/j.issn.1000-3428.2008.08.021

• 软件技术与数据库 • 上一篇    下一篇

基于多队列和多线程的短信实时并发控制算法

沈 斌,李兴国,钟金宏,沈丽娜   

  1. (合肥工业大学管理学院,合肥 230009)
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2008-04-20 发布日期:2008-04-20

Real-time Concurrent Algorithm for Short Message Control Based on Multi-queue and Multithread

SHEN Bin, LI Xing-guo, ZHONG Jin-hong, SHEN Li-na   

  1. (School of Management, Hefei University of Technology, Hefei 230009)
  • Received:1900-01-01 Revised:1900-01-01 Online:2008-04-20 Published:2008-04-20

摘要: 针对Modem控制的短信应用在实时性和并发性等性能上的不足,以实际项目为背景,提出基于多队列和多线程的短信实时并发控制算法。以排队论模型为依据,采用多队列、多线程、池等技术手段保证短信控制的实时性、并发性以及数据的共享性。通过排队论模型和实验对算法进行验证,结果表明,该算法大幅提高了短信发送和接收的速度与效率,满足了短信应用的实时性和并发性需要,优化了短信应用系统的整体性能。

关键词: 短信, 多队列, 多线程, 实时, 并发

Abstract: Dedicated to the deficiencies in real-time characteristic, concurrency and other performance of short message applications controlled by the Modem, a real-time concurrent algorithm for short message control based on multi-queue structure and multithread technology is introduced, with a practical project as the background. The algorithm is built on the basis of queuing theory model and adopts multi-queue, multithreading, pool and some other technical means to ensure the real-time characteristic, concurrency and data sharing of short message control. This paper also validates the algorithm via queuing theory model and experiments, so that the results indicate that the algorithm increases the speed and the efficiency of the short message sending and receiving to a great extent, consequently satisfies the requirement for real-time characteristic and concurrency, and improves the overall performance of the short message applications.

Key words: short message, multi-queue, multithread, real-time, concurrent

中图分类号: