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

解析Java中的阻塞I/O与非阻塞I/O控制
引用本文:龚黔芬.解析Java中的阻塞I/O与非阻塞I/O控制[J].渝西学院学报(自然科学版),2006(1).
作者姓名:龚黔芬
作者单位:重庆工商大学计算机科学与信息工程学院 重庆400067
摘    要:分析了新、旧I/O API工作原理及其可伸缩性方面的差异,阐述了如何用选择器通道技术让SocketChannel工作在非阻塞I/O模式下,以实现服务器与客户端无阻塞的、流畅的数据读写,使服务器能在较小的系统开销情况下更有效地、并发地为大量客户机提供服务,提升系统性能.

关 键 词:阻塞I/O  非阻塞I/O  选择器  通道

The Analysis of the Blocking I/O Method and Non-Blocking I/O Method in Java
Authors:GONG Qian-fen
Abstract:Inthis paper,the basic principle about the I/O API in Java and the difference of extendence betweenthe BlockingI/O method and Non-Blocking method are expounded.Through Selector and channel technology,we can managethe Socketchannel workingonthe Non-Blocking model,whichensuredthe servertorunefficientlyand consume less resources,thus providedthe possibility andtechnical assistance for the server to parallel servicethousands of clients.
Keywords:Blocking I/O  Non-Blocking I/O  Selector  Channel
本文献已被 CNKI 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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