Advertisement
Guest User

Untitled

a guest
Dec 11th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <sys/types.h>
  4. #include <fcntl.h>
  5. #include <sys/stat.h>
  6. #include <unistd.h>
  7. #include <sys/wait.h>
  8. int calcoli_figlio1(){
  9. int k;
  10. printf("1.1 elab. parallela processo figlio \n");
  11. k = 3 + 2;
  12. return k;
  13. }
  14. int calcoli_padre1(){
  15. int k;
  16. printf("1 elab. parallela processo padre \n");
  17. k = 6 - 2;
  18. return k;
  19. }
  20. int calcoli_padre2(int a,int b){
  21. int k;
  22. printf("2 elab. finale padre \n");
  23. k = (a + b);
  24. return k;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement