基于多线程的Linux下并发服务器的实现研究  被引量:4

The Implement of Multithread Concurrent Server in Linux

在线阅读下载全文

作  者:张志佳[1] 于立国[2] 李海滨[2] 王东署 苑葳 

机构地区:[1]沈阳工业大学,沈阳110023 [2]中国科学院沈阳自动化研究所,沈阳110016 [3]东北大学人工智能与机器人研究所,沈阳110004 [4]中国联通辽宁分公司,沈阳110003

出  处:《微计算机应用》2007年第4期368-371,共4页Microcomputer Applications

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

摘  要:探讨了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.

关 键 词:多线程 并发服务器 套接字 LINUX系统 

分 类 号:TP393.05[自动化与计算机技术—计算机应用技术] TP316.81[自动化与计算机技术—计算机科学与技术]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象