自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(3)
  • 资源 (2)
  • 收藏
  • 关注

原创 NIO就绪处理之OP_WRITE

写就绪相对有一点特殊,一般来说,你不应该注册写事件。写操作的就绪条件为底层缓冲区有空闲空间,而写缓冲区绝大部分时间都是有空闲空间的,所以当你注册写事件后,写操作一直是就绪的,选择处理线程全占用整个CPU资源。所以,只有当你确实在写时再注册写操作,并在写完以后马

2011-07-03 23:02:08 8911

原创 NIO就绪处理之OP_ACCEPT

OP_ACCEPT的处理与OP_CONNECT基本一样,服务端监听,并注册OP_ACCEPT事件后,就已准备好接受客户端的连接了ServerSocketChannel ssc = ServerSocketChannel.open();ssc.configur

2011-07-03 22:41:34 5381

原创 NIO就绪处理之OP_CONNECT

连接就绪是所有就绪选择中最简单的,对它的处理也很简单。当客户端调用connect()并注册OP_CONNECT事件后,连接操作就会就绪。SocketChannel channel = SocketChannel.open();channel.configureBlocking(false);channel.connect(addr);channel.register(selector, Se

2011-07-03 22:26:20 7104

Fundamental Networking in Java

Provide fundamental and in-depth coverage of TCP/IP and UDP networking from the point of view of the Java API, and by discussing advanced networking pro-gramming techniques. The new I/O and networking features introduced.

2011-06-26

C++ By Example

《C++ By Example》is one of several books in Que's new line of By Example series, The philosophy of these books is simple:The best way to teach computer programming concepts is with multiple examples. Command descriptions, format syntax, and language references are not enough to teach a newcomer a programming language. Only by looking at numerous examples and running sample programs can programming students get more than just a "feel" for language.

2011-10-31

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人 TA的粉丝

提示
确定要删除当前文章?
取消 删除