ã¯ããã«ï¼æ¬è¨äºã®è¶£æ¨ 以ä¸ãCè¨èªãLinuxç°å¢ãåæã¨ããã è¤æ°ã®ãã¡ã¤ã«ãã£ã¹ã¯ãªãã¿ã¸ã®ã¤ãã³ãã管çãããã¨ããä¾ãã°select()ã使ç¨ããæ¹æ³ãããããåã§ã¯1ããã¯ããªãé ãï¼O(n)ï¼ãæ§è½ãæ±ãããªãepollã¤ã³ã¿ã¼ãã§ã¼ã¹ã使ãã®ãè¯ããã¨ã®ãã¨ãããã ããããªããã epollã¤ã³ã¿ã¼ãã§ã¼ã¹ã¯åé¢æ°ãä½ãè¡ãªã£ã¦ããã®ããããåãããªããæ ã«ã©ãã§ä½ãå¼ã¹ã°æ±ãã¦ããå¦çãå®ç¾ã§ããã®ããæçã§ãªãã 以ä¸ã§ã¯ã select()ã®ä½¿ç¨æ³ã¨å¯¾å¿ãããªãããepollã¤ã³ã¿ã¼ãã§ã¼ã¹ã®ä½¿ç¨æ³ãç°¡æã«ã¾ã¨ããã ãã£ã¦ãåè ã®æåãããç¨åº¦ç解ãã¦ãããã¨ãåæã¨ãªãã ã¾ããä¾ã¨ãã¦ã listenç¨ã®ã½ã±ãããã£ã¹ã¯ãªãã¿ã¨ãåã¯ã©ã¤ã¢ã³ãã¨æ¥ç¶ãããã½ã±ãããã£ã¹ã¯ãªãã¿ç¾¤ã¨ã管çããã³ã¼ããä½¿ç¨ ããããã®çºãã½ã±ããéä¿¡ã«é¢ããæä½éã®ç¥èãåæã¨
{{#tags}}- {{label}}
{{/tags}}