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.

pthreads-1b-simple.c (2 di<br />

2)<br />

int main(void){<br />

pthread_t tids[NUM_THREADS];<br />

int i, rc;<br />

printf("[Main] Starting...\n");<br />

for (i=0; i

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

Saved successfully!

Ooh no, something went wrong!