首页 | 本学科首页   官方微博 | 高级检索  
     检索      

基于Qt的线程池服务器的研究与应用
引用本文:刘飞,张卫强,罗彤.基于Qt的线程池服务器的研究与应用[J].无线电通信技术,2014(6):77-80.
作者姓名:刘飞  张卫强  罗彤
作者单位:宁波大学信息科学与工程学院,浙江宁波315211
基金项目:国家自然科学基金项目(61271137)
摘    要:在嵌入式系统应用中,Qt多线程技术的引入提高了图形界面(GUI)的响应速度,使用多线程技术就要频繁地创建和删除线程。对于传统的服务器,当大量客户端频繁请求连接时,服务器就会处于不停创建和删除线程的状态,从而增加了服务器的开销。针对传统服务器这种特点,为减少传统服务器频繁创建和删除线程带来的开销,提高服务器工作效率,对Qt的线程池技术进行讨论,研究其运行机制,并运用线程池技术创建一个服务器模型,最后通过命令客户端对该线程池服务器进行测试。

关 键 词:Qt  线程池技术  运行机制  服务器模型

Research and Application of Thread Pool Server Based on Qt
LIU Fei,ZHANG Wei-qiang,LUO Tong.Research and Application of Thread Pool Server Based on Qt[J].Radio Communications Technology,2014(6):77-80.
Authors:LIU Fei  ZHANG Wei-qiang  LUO Tong
Institution:( College of Information Science and Engineering, Ningbo University, Ningbo Zhejiang 315211, China)
Abstract:In the application of embedded system,the introduction of Qt multithreading technology can enhance the response speed of Graphical User Interface(GUI),but it may create and delete threads frequently.When a large number of clients request connection frequently,traditional servers may be in a state of constant creation and deletion of threads,which may increase the overhead of servers.In view of the characteristics of traditional servers,in order to reduce the overhead of traditional servers when creating and deleting threads frequently,and to improve the working efficiency of servers,this paper discusses the thread pool technology of Qt and studies its operational mechanism,and uses the thread pool technology to create a server model.In the end,the server of thread pool is tested through command client.
Keywords:Qt  thread pool technology  operational mechanism  server model
本文献已被 维普 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号