加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > Java > 正文

OIO在java中意味着什么?

发布时间:2020-12-15 04:32:07 所属栏目:Java 来源:网络整理
导读:请原谅我刚开始学习 Java网络编程.我刚看了 Netty in Action,提到了一个OIO. NIO is used in this example because it’s currently the most widely used transport,thanks to its scalability and thoroughgoing asynchrony. But a different transport im
请原谅我刚开始学习 Java网络编程.我刚看了 Netty in Action,提到了一个OIO.

NIO is used in this example because it’s currently the most widely used transport,thanks to its scalability and thoroughgoing asynchrony. But a different transport implementation could be used as well. If you wished to use the OIO transport in your server,you’d specify OioServerSocketChannel and OioEventLoopGroup.

我之前已经了解了Java IO和NIO.但OIO是什么?

我试图在谷歌搜索但没有得到任何东西.有人可以帮忙解释一下它是什么吗?

解决方法

OIO代表Old IO或Blocking IO.在此模型中,每个套接字或客户端连接都会导致生成一个新的专用线程来处理请求.所以,Number或threads ==活动的客户端/套接字的数量.

使用NIO或New IO,可以减少线程数量,从而为更多客户端提供服务.这里,数字或线程<活动的客户端/套接字数.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读