Go to the first, previous, next, last section, table of contents. 1 ããã»ã¹å¶å¾¡ 1.1 æ°ããããã»ã¹ã®çæ: fork() 1.1.1 fork()ã¯ä½ãããã®ã§ãã? #include <sys/types.h> #include <unistd.h> pid_t fork(void); fork()é¢æ°ã¯åå¨ãã¦ããããã»ã¹ããæ°ããããã»ã¹ãçæããããã«ä½¿ç¨ã ãã¾ããæ°ããããã»ã¹ãåããã»ã¹ã¨ããããã§ã«åå¨ãã¦ããããã»ã¹ã¯è¦ª ããã»ã¹ã¨ããã¾ããfork()ã®æ»ãå¤ããã§ãã¯ããã¨ããã®ä¸¡è ãåºå¥ã§ãã¾ ãã親ããã»ã¹ã«ã¯åããã»ã¹ã®ããã»ã¹IDãè¿ããã¾ãããåããã»ã¹ã«ã¯ 0ãè¿ãããã®ã§ãã ã§ãããã以ä¸ã®ç°¡åãªã³ã¼ããfork()ã®ä½¿ãæ¹ã®åºæ¬ã«ãªãã¾ãã pid_t pid; switch
{{#tags}}- {{label}}
{{/tags}}