22.01.2014 Views

Sincronizzazione (join, mutex, condition), semaphore - Lucidi

Sincronizzazione (join, mutex, condition), semaphore - Lucidi

Sincronizzazione (join, mutex, condition), semaphore - Lucidi

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

sem_getvalue<br />

Serve per poter leggere il valore attuale del<br />

contatore del semaforo<br />

int sem_getvalue( sem_t *sem, int *sval )<br />

<br />

<br />

<br />

sem_t *sem<br />

puntatore del semaforo di cui leggere il valore<br />

int *sval<br />

valore del semaforo<br />

Valore di ritorno<br />

sempre 0<br />

<strong>Sincronizzazione</strong> 101

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!