Advertisement
techno-

Untitled

Jan 16th, 2023
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.30 KB | None | 0 0
  1. int Valor;
  2. main(int argc, char * argv[])
  3. {
  4.  pid_t pid;
  5.  Valor=2022;
  6.  for (i=0; i<VECES; i++){
  7.  pid=fork()+fork();
  8.  if (execl("./b.out", "./b.out", NULL)==-1)
  9.  exit(0);
  10.  printf ("/%d/\n", Valor);
  11.  }
  12. }
  13. /*Código de b.out*/
  14. int Valor;
  15. main (int argc, char *argv[])
  16. {
  17.  printf ("/%d/\n",Valor);
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement