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.

Inizializzazione dinamica<br />

pthread_<strong>mutex</strong>_t <strong>mutex</strong>;<br />

int pthread_<strong>mutex</strong>_init( pthread_<strong>mutex</strong>_t *<strong>mutex</strong>, const<br />

pthread_<strong>mutex</strong>attr_t *mattr )<br />

<br />

<br />

<br />

pthread_<strong>mutex</strong>_t *<strong>mutex</strong><br />

puntatore al <strong>mutex</strong> da inizializzare<br />

pthread_<strong>mutex</strong>attr_t *mattr<br />

attributi del <strong>mutex</strong> da inizializzare<br />

se NULL usa valori default<br />

Valore di ritorno<br />

sempre il valore 0<br />

<strong>Sincronizzazione</strong> 26

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

Saved successfully!

Ooh no, something went wrong!