检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
机构地区:[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[自动化与计算机技术—计算机应用技术]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.15