- Page 1 and 2: Le System Call di Unix/Linux 11 Feb
- Page 3 and 4: System Call Per ottenere l’esecuz
- Page 5 and 6: System Call Interfaccia di programm
- Page 7 and 8: Processi Unix Caratteristiche del p
- Page 9: System Call per la gestione di Proc
- Page 13 and 14: Effetti della fork() padre figlio P
- Page 15 and 16: Relazione Padre-Figlio in Unix Dopo
- Page 17 and 18: exit( ) void exit(int status); •
- Page 19 and 20: wait • Lo stato di terminazione p
- Page 21 and 22: wait Rilevazione dello stato: in ca
- Page 23 and 24: wait • Rilevazione dello stato: e
- Page 25 and 26: System callexec • Mediante la for
- Page 27 and 28: Esempio: execl main() {int pid, sta
- Page 29 and 30: Esempio: effetti della execl() sull
- Page 31 and 32: Effetti dell’exec exec Il process
- Page 33 and 34: Esempio: execve int execve(char *pa
- Page 35 and 36: Inizializzazione dei processi Unix
- Page 37 and 38: Relazione shell padre-shell figlio
- Page 39 and 40: Sincronizzazione tra processi I pro
- Page 41 and 42: Segnali Unix/Linux • Per ogni rea
- Page 43 and 44: Gestione dei segnali • Quando un
- Page 45 and 46: Ad esempio: #include void gestore(
- Page 47 and 48: Routine di gestione del segnale (ha
- Page 49 and 50: Esempio: parametro del gestore /* f
- Page 51 and 52: Esempio: gestore del SIGCHLD #inclu
- Page 53 and 54: Segnali & exec Sappiamo che: • un
- Page 55 and 56: Esempio: esecuzione anna@lab3-linux
- Page 57 and 58: kill: esempio: #include #include
- Page 59 and 60: Segnali: altre system call alarm: u
- Page 61 and 62:
Esempio Due processi (padre e figli
- Page 63 and 64:
Alcune considerazioni: • il gesto
- Page 65 and 66:
I thread nel sistema operativo LINU
- Page 67 and 68:
LinuxThreads • Caratteristiche th
- Page 69 and 70:
• Creazione di threads: #include
- Page 71 and 72:
LinuxThreads • Un thread puo` ter
- Page 73 and 74:
Esempio: creazione di thread #inclu
- Page 75 and 76:
Compilazione • Per compilare un p
- Page 77 and 78:
LinuxThreads: MUTEX • Lo standard
- Page 79 and 80:
MUTEX: lock/unlock • Locking/unlo
- Page 81 and 82:
Esempio void *thread2_process (void
- Page 83 and 84:
Test $ $ gcc -D_REENTRANT -o tlock
- Page 85 and 86:
Operazioni sui semafori • sem_ini
- Page 87 and 88:
Operazioni sui semafori: • signal
- Page 89 and 90:
Esempio: sincronizzazione /* la FAS
- Page 91 and 92:
main () { pthread_t th1, th2; void
- Page 93 and 94:
Semafori: esempio /* tre processi c
- Page 95 and 96:
void *thread2_process (void * arg)
- Page 97 and 98:
main () { pthread_t th1, th2,th3; s
- Page 99 and 100:
Esecuzione: [aciampolini@ccib48 thr
- Page 101 and 102:
Variabili Condizione: inizializzazi
- Page 103 and 104:
Variabili condizione: wait • La s
- Page 105 and 106:
Esempio: produttore e consumatore S
- Page 107 and 108:
Produttore e consumatore Operazioni
- Page 109 and 110:
Esempio:Operazioni sul buffer /* In
- Page 111 and 112:
Operazioni sul buffer /*ESTRAZIONE:
- Page 113 and 114:
void *consumer (void *data) { int d
- Page 115:
Segnali & Thread • Per spedire un