fork download
  1. #include <stdio.h>
  2. #include <unistd.h>
  3. #include <fcntl.h>
  4.  
  5.  
  6. int main(int argc, char *argv[]) {
  7. pid_t pid= fork();
  8. fork();
  9. if(pid==0)
  10. {
  11. int i;
  12. for(i=1;i<=10000000;i++);
  13. printf("tensorflow\n");
  14. exit(1);
  15. }
  16. printf("Google\n");
  17. return 0;
  18. }
  19.  
Success #stdin #stdout 0s 4576KB
stdin
Standard input is empty
stdout
Google
Google
tensorflow
tensorflow