ã·ã³ã°ã«ã¹ã¬ããã§ã¯ããé
ãã 以åã«ãã«ãã³ã¢æ代ã®é«éãµã¼ãã¼ã®å®è£
ã§ãããããã¯ã¼ã¯IOã¯ãã«ãã¹ã¬ããã§åãããããã®ä»ã®é¨åã¯ã·ã³ã°ã«ã¹ã¬ããã§åãããã¨ããIOã¢ã¼ããã¯ãã£ã®å®è£
ï¼mp::iothreadsï¼ãç´¹ä»ãã¾ãããiothreadsã¯ãã¸ãã¯é¨åãã·ã³ã°ã«ã¹ã¬ããã§æ¸ããããå®è£
ã®æéãæãããã¨ãã§ãããããã¯ã¼ã¯IOãããã«ããã¯ã«ãªãããã°ã©ã ã«ã¯ç¹ã«é©ãã¦ããã¨æããã¾ãã ãããå®éã«iothreadsã使ã£ã¦ããã°ã©ã ãæ¸ãã¦ã¿ãã¨ãé常ã«è² è·ãé«ãç¶æ³ã§ã·ã³ã°ã«ã¹ã¬ããã®é¨åã®å¦çé度ãããã«ããã¯ã«ãªã£ã¦ãã¾ããã¨ãããã¾ããã ããã§ãã«ãã³ã¢CPUã®æ§è½ãå¼ãåºãããã«ãå¾¹é 徹尾ãã«ãã¹ã¬ããã§åããIOã¢ã¼ããã¯ãã£ãå®è£
ãã¦ã¿ã¾ããã 1ã¤ã®ã¹ã¬ããããããæã¯epoll_wait()ããããæã¯read(2)ãè¡ããããæã¯ã¤ãã³ããå¦çã
{{#tags}}- {{label}}
{{/tags}}