• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

J4 ›› 2007, Vol. 29 ›› Issue (1): 138-141.

• 论文 • 上一篇    下一篇

高并发事件驱动服务器研究

黄冬泉[1] 张敏[2] 徐振亚[1] 尹宝林[1] 李伟琴[1]   

  • 出版日期:2007-01-01 发布日期:2010-05-30

  • Online:2007-01-01 Published:2010-05-30

摘要:

本文对高并发服务器中使用事件驱动编程模型进行了分析和研究,提出了一种混合使用事件和多线程技术的服务器软件体系结构,使用高级Petri网对混合多线程阶段化事件驱 动结构进行了建模,并与传统多线程模型进行了性能比较。与常见的一些编程模型相比,建立这种体系结构基础上的服务器应用具有较好的可伸缩性、较低的资源消耗、易编程使用等优点。

关键词: 高并发服务器 事件驱动 多线程 软件体系结构

Abstract:

In this paper,the event-driven programming mldel used in highly concurrent servers is analyzed and studied.A novel server software architecture which uses both events and threads is presented.Compared with some usual programming models,server applications based on this architecture gain the advantagesof scalability,resource consumption and easy usage in programming.By using a high-level Petri net,the hybrid event and thread architecture is modelled    and a performance comparison is made with the traditional multi-threading model.

Key words: highly concurrent server;event-driven;multi-threading;software architecture