Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int Valor;
- main(int argc, char * argv[])
- {
- pid_t pid;
- Valor=2022;
- for (i=0; i<VECES; i++){
- pid=fork()+fork();
- if (execl("./b.out", "./b.out", NULL)==-1)
- exit(0);
- printf ("/%d/\n", Valor);
- }
- }
- /*Código de b.out*/
- int Valor;
- main (int argc, char *argv[])
- {
- printf ("/%d/\n",Valor);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement