﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>C++博客-JUST DO IT-随笔分类-网络相关</title><link>http://www.cppblog.com/xmoss/category/11303.html</link><description>我之所以在这里，只是因为我想要在这里</description><language>zh-cn</language><lastBuildDate>Sat, 25 Jul 2009 03:32:27 GMT</lastBuildDate><pubDate>Sat, 25 Jul 2009 03:32:27 GMT</pubDate><ttl>60</ttl><item><title>高效异步IO的设计开发</title><link>http://www.cppblog.com/xmoss/archive/2009/07/25/91110.html</link><dc:creator>xmoss</dc:creator><author>xmoss</author><pubDate>Sat, 25 Jul 2009 03:18:00 GMT</pubDate><guid>http://www.cppblog.com/xmoss/archive/2009/07/25/91110.html</guid><wfw:comment>http://www.cppblog.com/xmoss/comments/91110.html</wfw:comment><comments>http://www.cppblog.com/xmoss/archive/2009/07/25/91110.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/xmoss/comments/commentRss/91110.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/xmoss/services/trackbacks/91110.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 异步IO中也有高效低效之分，但主要还是要看具体的应用到底需要什么样机制。比如大家熟知的select就是个非常通用且跨平台的方法，由于select中需要把大量的时间花在维护IO句柄上，导致其效率大打折扣，一般来说，对于小并发的异步IO操作，比如普通的客户端或者是小并发量的服务器，它的效率可能也足够了。关于select的效率问题其实从各平台上对于FD_SETSIZE的定义就能看出一些来，在windows平台上，FD_SETSIZE是64，在Linux平台上是1024，也就是说，对于平台提供商来说也不指望他们提供的select能给你多大的并发吞吐能力。&nbsp;&nbsp;<a href='http://www.cppblog.com/xmoss/archive/2009/07/25/91110.html'>阅读全文</a><img src ="http://www.cppblog.com/xmoss/aggbug/91110.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/xmoss/" target="_blank">xmoss</a> 2009-07-25 11:18 <a href="http://www.cppblog.com/xmoss/archive/2009/07/25/91110.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>IO - 同步，异步，阻塞，非阻塞</title><link>http://www.cppblog.com/xmoss/archive/2009/07/25/91109.html</link><dc:creator>xmoss</dc:creator><author>xmoss</author><pubDate>Sat, 25 Jul 2009 03:14:00 GMT</pubDate><guid>http://www.cppblog.com/xmoss/archive/2009/07/25/91109.html</guid><wfw:comment>http://www.cppblog.com/xmoss/comments/91109.html</wfw:comment><comments>http://www.cppblog.com/xmoss/archive/2009/07/25/91109.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/xmoss/comments/commentRss/91109.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/xmoss/services/trackbacks/91109.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 所谓的同步和异步，在这里指的是应用程序和内核之间的交互方式。如果应用程序不需要等待内核的回应，那么它就是异步的。如果应用程序提交完IO请求后，需要等待“回执”，那么它就是同步的。而阻塞和非阻塞，指的是应用程序是否等待IO操作的完成。如果应用程序必须等到IO操作实际完成以后再执行下面的操作，那么它是阻塞的。反之，如果不等待IO操作的完成就开始执行其它操作，那么它是非阻塞的。&nbsp;&nbsp;<a href='http://www.cppblog.com/xmoss/archive/2009/07/25/91109.html'>阅读全文</a><img src ="http://www.cppblog.com/xmoss/aggbug/91109.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/xmoss/" target="_blank">xmoss</a> 2009-07-25 11:14 <a href="http://www.cppblog.com/xmoss/archive/2009/07/25/91109.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>