Guest User

Untitled

a guest
Feb 21st, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. // Kako forkamo
  2. int i = podanparameter;
  3. while (i > 0) {
  4. i--;
  5. int z = fork();
  6. if (z == 0) // mi smo sin. poklicemo fibonnacija, izpisemo rezultat in zakljucimo z programom
  7. // drugace nas ne briga
  8. }
  9.  
  10. // Kako pocakamo na froce (ce smo slucajno foter)
  11. int i = podanparameter;
  12. for (I =0; I < podanparameter; i++) wait();
Add Comment
Please, Sign In to add comment