ããã»ã¹ããããã¯ããè¦å ã®ä¸ã¤ã«ãã¡ã¤ã«I/Oãããã¾ãããããåæI/Oã¨è¨ãã¾ãããPOSIXã§ã¯AIOï¼éåæ I/OãAsynchronous I/Oï¼ãå®ç¾©ãã¦ãããI/Oä¸ã§ãããã»ã¹ããããã¯ããä»ã®å¦çãé²ããããããã«ãªãã¾ãã ä»åã¯ããããã¡ãã£ãã·ã¥ãæèãããã¾ãã¾ãªãã¡ã¤ã«I/Oã«ã¤ãã¦è§£èª¬ãã¾ãã ã¡ã¢ãªããã I/O ãã¡ã¤ã«I/Oã®ä¸ç¨®ã«ã¡ã¢ãªãããI/Oãmmap(2)ãããã¾ããmmap(2)ï¼ããã³mmap2(2)ï¼ã¯ãªã¼ãã³ããããã¡ã¤ã«ãããã»ã¹ã¢ãã¬ã¹ç©ºéã¸ãããã³ã°ãããã®ã§ãä¾ãã°ã¢ããªã±ã¼ã·ã§ã³å ã«é åãç¨æãããã¡ã¤ã«ãèªã¿åãåä½ã¯æ¬¡ã®ããã«ãå®è£ ã§ãã¾ãã 3mmap.c è¦ç´ { char a[N]; fd = open(path, O_RDONLY); read(fd, a, N) printf("%.*s\n", N, a)
{{#tags}}- {{label}}
{{/tags}}