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

基于多线程技术的聊天系统研究
引用本文:蒋溢,HUANG Jin,王化晶.基于多线程技术的聊天系统研究[J].计算机工程与设计,2008,29(15).
作者姓名:蒋溢  HUANG Jin  王化晶
作者单位:重庆邮电大学,计算机科学与技术学院,重庆,400065
基金项目:重庆市科委自然科学基金计划项目,重庆市信息产业发展政策研究重点基金
摘    要:即时聊天工具不仅实现了人们之间的即时聊天,还进一步加强了网络的资源共事的功能,Java提供的Thread线程类和一些多线程机制可用来完成客户端多点对多点的聊天.客户端之间以及客户机和服务器之间的通信可以通过Java语言提供的net包以及I/O包来实现.服务器端可使用线程池技术来处理大量的客户请求,线程池技术减少了线程创建和销毁的开销,提高了线程的可重用性,因而可以有效提高服务器端效率.

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

Research on chat system based on multi-thread technology
JIANG Yi,HUANG Jin,WANG Hua-jing.Research on chat system based on multi-thread technology[J].Computer Engineering and Design,2008,29(15).
Authors:JIANG Yi  HUANG Jin  WANG Hua-jing
Affiliation:JIANG Yi1,HUANG Jin2,WANG Hua-jing1(1.College of Computer Science , Technology,Chongqing University of Posts , Telecommunications,Chongqing 400065,China,2.Chongqing Television Network Transmission Limited Company,Chongqing 400050,China)
Abstract:The on-line chat system not only realized on-line chat between the people,but also has further strengthened the resources sha-ring 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 th...
Keywords:client/sever(C/S) mode  multi-thread  DatagramSocket  thread pool  socket  
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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