previous | start | next

HW 1: 8.10

 

    1   
    2   void doit()
    3   {
    4       if (Fork() == 0) {
    5         Fork();
    6         printf("hello\n");
    7         exit(0);
    8       }
    9       return;
   10   }
   11   
   12   int main()
   13   {
   14       doit();
   15       printf("hello\n");
   16       exit(0);
   17   }


previous | start | next