Files
School/Anul 1/Semestrul 2/OS/Labs/mockexam1/12.txt
T
2024-08-31 12:07:21 +03:00

10 lines
120 B
Plaintext

int n=0;
pthread_mutex_t m;
void* f(void* p){
phread_mutex_lock(&m);
n++:
pthread_mutex_unlock(&m);
return NULL;
}