PDF Google Drive Downloader v1.1


Report a problem

Content text corrigés examens programmation systeme.pdf


#include #include #include #include int main(int argc, char const *argv[]) { int pid2,i,sig; pid2=atoi(argv[1]); for (i = 2; i < argc; i++) { sig=atoi(argv[i]); kill(pid2,sig); } printf("A1"); return 0; } Page 1 de 9 EXAMEN 2015
#include #include #include #include void handler(int sig) { if (sig==SIGUSR1 || sig==SIGUSR2) { printf("%d",sig); exit(0); } } int main(int argc, char const *argv[]) { int pid2,i,sig; pid2=atoi(argv[1]); signal(SIGUSR1,handler); signal(SIGUSR2,handler); while (1) { printf("A2"); sleep(1); } return 0; } Page 2 de 9
#include #include #include #include #include #define CLEMP 100 #define N 10 typedef struct MP { int tab[N]; int compteur; }MP; int main() { MP *mp; int idMP; idMP=shmget(CLEMP,sizeof(MP),IPC_CREAT|0666); if (idMP==-1) { perror("Shmget"); exit(0); } mp=(MP*)shmat(idMP,0,0); mp->compteur=0; shmdt(mp); shmctl(idMP,IPC_RMID,0) return 0; } Page 3 de 9

Related document

x
Report download errors
Report content



Download file quality is faulty:
Full name:
Email:
Comment
If you encounter an error, problem, .. or have any questions during the download process, please leave a comment below. Thank you.