基于多线程技术的聊天系统研究  被引量:5

Research on chat system based on multi-thread technology

在线阅读下载全文

作  者:蒋溢[1] 黄进[2] 王化晶[1] 

机构地区:[1]重庆邮电大学计算机科学与技术学院,重庆400065 [2]重庆有线电视网络有限公司,重庆400050

出  处:《计算机工程与设计》2008年第15期4064-4066,4096,共4页Computer Engineering and Design

基  金:重庆市科委自然科学基金计划项目(CSTC2007BB2451);重庆市信息产业发展政策研究重点基金项目(K2007-47、K2007-49、K2007-53)

摘  要:即时聊天工具不仅实现了人们之间的即时聊天,还进一步加强了网络的资源共享的功能,Java提供的Thread线程类和一些多线程机制可用来完成客户端多点对多点的聊天。客户端之间以及客户机和服务器之间的通信可以通过Java语言提供的net包以及I/O包来实现。服务器端可使用线程池技术来处理大量的客户请求,线程池技术减少了线程创建和销毁的开销,提高了线程的可重用性,因而可以有效提高服务器端效率。The on-line chat system not only realized on-line chat between the people, but also has further strengthened the resources sharing function of network. Because chat is multi-points to the multi-points, the thread class and some multi-thread mechanism available in Java is used for implementing multi-points to multi-points chat, Correspondence between the client and Server is realized by making use of Java I/O package and net package, Thread pool technology for server to deal with massive customer requests. The thread pool technology has decreased expense of establishing and destroying thread, which improves the performance of thread' s reuse, as a result, the efficiency of server is greatly raised.

关 键 词:客户端/服务器模式 多线程 数据报套接字 线程池 套接字 

分 类 号:TP393.01[自动化与计算机技术—计算机应用技术]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

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