Anonymous user
Concurrent computing: Difference between revisions
Removed external library solution, as task can be done through standard ones.
(Updated whitespace, removed versions for old code, and removed code using external libraries as standard libraries allows execution of code. It's suspicious that three standard libraries do the job, so either the task or the code isn't precise enough.) |
(Removed external library solution, as task can be done through standard ones.) |
||
Line 120:
=={{header|C}}==
<lang c>#include <stdio.h>
#include <unistd.h>
Line 134 ⟶ 132:
} \
pthread_mutex_unlock(&condm); \
} while(0);
void * t_enjoy(void * p) {
WAITBANG();
Line 164 ⟶ 162:
pthread_join(a[i], NULL);
}
}</lang>
|