Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <sys/types.h>
- #include <fcntl.h>
- #include <sys/stat.h>
- #include <unistd.h>
- #include <sys/wait.h>
- int calcoli_figlio1(){
- int k;
- printf("1.1 elab. parallela processo figlio \n");
- k = 3 + 2;
- return k;
- }
- int calcoli_padre1(){
- int k;
- printf("1 elab. parallela processo padre \n");
- k = 6 - 2;
- return k;
- }
- int calcoli_padre2(int a,int b){
- int k;
- printf("2 elab. finale padre \n");
- k = (a + b);
- return k;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement