基于多线程的Linux下并发服务器的实现研究


Autoria(s): 张志佳; 于立国; 李海滨; 王东署; 苑葳
Data(s)

2007

Resumo

探讨了Linux平台下多线程技术和套接字网络通讯问题,在此基础上利用互斥锁和条件变量技术设计了一个面向连接的多线程并发服务器的详细算法。最后给出了基于Posix线程库的Linux系统下用C++实现多线程并发服务器的基本程序框架。实际项目应用表明这种基于多线程的并发服务器结构在完善程序功能的同时还可以有效提高其服务性能。

The paper discusses the techniques of multithread and the socket communication under the Linux platform. Then, based on mutual exclusion and condition variables, a detailed algorithm to implement the connection-oriented multithread concurrent server is given. Finally, the basic program frame to implement multithread concurrent server with C++ language under Linux system based on Posix thread library is presented. The application shows the proposed frame can improve the service performance while expand the program's functions effectively.

国家863计划资助项目(2001AA422270)

Identificador

http://ir.sia.ac.cn//handle/173321/2645

http://www.irgrid.ac.cn/handle/1471x/171515

Idioma(s)

中文

Palavras-Chave #多线程 #并发服务器 #套接字 #Linux系统
Tipo

期刊论文