Fork : number of processes created [closed]
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . main(){ int i; for(i=0;i<4;i++) fork(); while(1); } Is the above graph, the output of the code? 回答1: No, that's not quite correct though it's close. Think about the properties of all those processes down the left hand side. p0 creates four children, p1 creates three, and so on. Since this is undoubtedly