why does this:
produce this:Code:#include <stdio.h> int main() { short int pid, i; for (i=0; i<=1; i++) { pid = fork(); if (pid==0) printf("hello%d\n",i); else printf("pid: %d\n", pid); fflush(NULL); } }
esp. this red bit...Code:hello0 hello1 pid: 4790 pid: 4789 hello1 pid: 4791