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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Esempio 7: lettori e scrittori (5 di<br />

5)<br />

void *lettore(void *in) {<br />

int i, j, k; char local[LUN+1]; local[LUN] = 0; /* Buffer locale */<br />

for (i=0; i

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

Saved successfully!

Ooh no, something went wrong!