WindowsÍê³É¶Ë¿ÚÓëLinux epoll¼¼Êõ¼ò½é
WindowsÍê³É¶Ë¿ÚÓëLinux epoll¼¼Êõ¼ò½é
2009-09-16 09:13
WINDOWSÍê³É¶Ë¿Ú±à³Ì
1¡¢»ù±¾¸ÅÄî
2¡¢WINDOWSÍê³É¶Ë¿ÚµÄÌصã
3¡¢Íê³É¶Ë¿Ú£¨Completion Ports £©Ïà¹ØÊý¾Ý½á¹¹ºÍ´´½¨
4¡¢Íê³É¶Ë¿ÚÏ̵߳Ť×÷ÔÀí
5¡¢WindowsÍê³É¶Ë¿ÚµÄʵÀý´úÂë
LinuxµÄEPollÄ£ÐÍ
1¡¢ÎªÊ²Ã´selectÂäºó
2¡¢ÄÚºËÖÐÌá¸ßI/OÐÔÄܵÄз½·¨epoll
3¡¢epollµÄÓŵã
4¡¢epollµÄ¹¤×÷ģʽ
5¡¢epollµÄʹÓ÷½·¨
6¡¢LinuxÏÂEPOll±à³ÌʵÀý
×ܽá
WINDOWSÍê³É¶Ë¿Ú±à³Ì
ÕªÒª£º¿ª·¢ÍøÂç³ÌÐò´ÓÀ´¶¼²»ÊÇÒ»¼þÈÝÒ×µÄÊÂÇ飬¾¡¹ÜÖ»ÐèÒª×ñÊغÜÉÙµÄһЩ¹æÔò;´´½¨socket,·¢ÆðÁ¬½Ó£¬½ÓÊÜÁ¬½Ó£¬·¢ËͺͽÓÊÜÊý¾Ý¡£ÕæÕýµÄÀ§ÄÑÔÚÓÚ£º ÈÃÄãµÄ³ÌÐò¿ÉÒÔÊÊÓ¦´Óµ¥µ¥Ò»¸öÁ¬½Óµ½¼¸Ç§¸öÁ¬½ÓÄËÖÁÓÚÉÏÍò¸öÁ¬½Ó¡£ÀûÓÃWindowsƽ̨Íê³É¶Ë¿Ú½øÐÐÖصþI/OµÄ¼¼ÊõºÍLinuxÔÚ2.6°æ±¾µÄÄÚºËÖÐ ÒýÈëµÄEPOll¼¼Êõ£¬¿ÉÒԺܷ½±ãÔÚÔÚÔÚWindowsºÍLinuxƽ̨ÉÏ¿ª·¢³öÖ§³Ö´óÁ¿Á¬½ÓµÄÍøÂç·þÎñ³ÌÐò¡£±¾ÎĽéÉÜÔÚWindowsºÍLinuxƽ̨ ÉÏʹÓõÄÍê³É¶Ë¿ÚºÍEPollÄ£ÐÍ¿ª·¢µÄ»ù±¾ÔÀí£¬Í¬Ê±¸ø³öʵ¼ÊµÄÀý×Ó¡£±¾ÎÄÖ÷Òª¹Ø×¢C/S½á¹¹µÄ·þÎñÆ÷¶Ë³ÌÐò£¬ÒòΪһ°ãÀ´Ëµ£¬¿ª·¢Ò»¸ö´óÈÝÁ¿£¬¾ß¿ÉÀ©Õ¹ ÐÔµÄwinsock³ÌÐòÒ»°ã¾ÍÊÇÖ¸·þÎñ³ÌÐò¡£
1¡¢»ù±¾¸ÅÄî
É豸---windows²Ù×÷ϵͳÉÏÔÊÐíͨÐŵÄÈκζ«Î÷£¬±ÈÈçÎļþ¡¢Ä¿Â¼¡¢´®Ðпڡ¢²¢Ðпڡ¢Óʼþ²Û¡¢ÃüÃû¹ÜµÀ¡¢ÎÞÃû¹ÜµÀ¡¢Ì×½Ó×Ö¡¢¿ØÖÆ̨¡¢Âß¼´ÅÅÌ¡¢ÎïÀí ´ÅÅ̵ȡ£¾ø´ó¶àÊýÓëÉ豸´ò½»µÀµÄº¯Êý¶¼ÊÇCreateFile/ReadFile/WriteFileµÈ¡£ËùÒÔÎÒÃDz»ÄÜ¿´µ½**Fileº¯Êý¾ÍÖ»Ïëµ½Îļþ É豸¡£ÓëÉ豸ͨÐÅÓÐÁ½ÖÖ·½Ê½£¬Í¬²½·½Ê½ºÍÒì²½·½Ê½¡£Í¬²½·½Ê½Ï£¬µ±µ÷ÓÃReadFileº¯Êýʱ£¬º¯Êý»áµÈ´ýϵͳִÐÐÍêËùÒªÇóµÄ¹¤×÷£¬È»ºó²Å·µ»Ø£»Òì²½·½Ê½ Ï£¬ReadFileÕâÀຯÊý»áÖ±½Ó·µ»Ø£¬ÏµÍ³×Ô¼ºÈ¥Íê³É¶ÔÉ豸µÄ²Ù×÷£¬È»ºóÒÔijÖÖ·½Ê½Í¨ÖªÍê³É²Ù×÷¡£
ÖصþI/O----¹ËÃû˼Ò壬µ±Äãµ÷ÓÃÁËij ¸öº¯Êý£¨±ÈÈçReadFile£©¾ÍÁ¢¿Ì·µ»Ø×ö×Ô¼ºµÄÆäËû¶¯×÷µÄʱºò£¬Í¬Ê±ÏµÍ³Ò²ÔÚ¶ÔI/0É豸½øÐÐÄãÒªÇóµÄ²Ù×÷£¬ÔÚÕâ¶Îʱ¼äÄÚÄãµÄ³ÌÐòºÍϵͳµÄÄÚ²¿¶¯×÷ÊÇ ÖصþµÄ£¬Òò´ËÓиüºÃµÄÐÔÄÜ¡£ËùÒÔ£¬ÖصþI/OÊÇÓÃÓÚÒì²½·½Ê½ÏÂʹÓÃI/OÉ豸µÄ¡£ ÖصþI/OÐèҪʹÓõÄÒ»¸ö·Ç³£ÖØÒªµÄÊý¾Ý½á¹¹OVERLAPPED¡£
2¡¢WINDOWSÍê³É¶Ë¿ÚµÄÌصã
Win32ÖصþI/O(Overlapped I/O)»úÖÆÔÊÐí·¢ÆðÒ»¸ö²Ù×÷£¬È»ºóÔÚ²Ù×÷Íê³ÉÖ®ºó½ÓÊܵ½ÐÅÏ¢¡£¶ÔÓÚÄÇÖÖÐèÒªºÜ³¤Ê±¼ä²ÅÄÜÍê³ÉµÄ²Ù×÷À´Ëµ£¬ÖصþIO»úÖÆÓÈÆäÓÐÓã¬ÒòΪ·¢ÆðÖصþ²Ù×÷µÄÏß
Ïà¹ØÎĵµ£º
1. HCI²ãÐÒé¸ÅÊö£º
HCIÌṩһÌ×ͳһµÄ·½·¨À´·ÃÎÊBluetoothµ×²ã¡£ÈçͼËùʾ£º
´ÓͼÉÏ¿ÉÒÔ¿´³ö£¬Host Controller Interface(HCI) ¾ÍÊÇÓÃÀ´¹µÍ¨HostºÍModule¡£Hostͨ³£¾ÍÊÇPC£¬ ModuleÔòÊÇÒÔ¸÷ÖÖÎïÀíÁ¬½ÓÐÎʽ£¨USB,serial,pc-cardµÈ£©Á¬½Óµ½PCÉϵÄbluetooth Dongle¡£
ÔÚHostÕâÒ»¶Ë£ºapplication,SDP,L2capµÈÐÒé ......
ÔÚLinuxµÄc±à³ÌÖдó¼Ò¾³£ÓÃgdbµ÷ÊÔ³ÌÐò£¬ÒÔÏÂÊÇһЩ³£ÓõÄÖ¸Áî 1.break FUNCTION ÔÚij¸öº¯ÊýÉÏÉèÖöϵ㡣º¯ÊýÖØÔØʱ£¬ÓпÉÄÜͬʱÔÚ¼¸¸öÖØÔصĺ¯ÊýÉÏÉèÖÃÁ˶ϵã
break +OFFSET break -OFFSET ÔÚµ±Ç°³ÌÐòÔËÐе½µÄÇ°¼¸Ðлòºó¼¸ÐÐÉèÖöϵã
break LINENUM ÔÚÐкÅΪLINENUMµÄÐÐÉÏÉèÖöϵã
break FILENAME:LINENUM ÔÚÎļþÃûÎ ......
ÔÚlinuxÏ°²×°ÅäÖÃsvn¶ÀÁ¢·þÎñÆ÷
subversion(ÒÔϼò³Æsvn)ÊǽüÄêÀ´áÈÆðµÄ°æ±¾¹ÜÀí¹¤¾ß£¬ÊÇcvsµÄ½Ó°àÈË¡£
svn·þÎñÆ÷ÓÐ2ÖÖÔËÐз½Ê½£º¶ÀÁ¢·þÎñÆ÷ºÍ½èÖúapache¡£2ÖÖ·½Ê½¸÷ÓÐÀû±×¡£
svn´æ´¢°æ±¾Êý¾ÝÒ²ÓÐ2ÖÖ·½Ê½£ºBDBºÍFSFS¡£ÒòΪBDB·½Ê½ÔÚ·þÎñÆ÷ÖжÏʱ£¬ÓпÉÄÜËøסÊý¾Ý£¨jijian91ÔÚ¸ãLDAPʱ¾ÍÉîÊÜÆ亦£¬Ã»·¨¸ùÖΣ©£¬ËùÒÔ»¹ÊÇF ......
For all those who are beginners in any linux(ubuntu) find hard to find the package files of their distro and end up in finding an source package(which is either in tar.gz or .gz).. so now people think how to install these source files…..
lets now see how would you be installing source files ......