Posts by João Marcelino • 11 points
2 posts
-
0
votes2
answers102
viewsA: How does the pthread_cond_timedwait() function work?
I was helped in stackoverflow English, more information: Stackoverflow English / gcc -Wall -pthread timedwait.c -o exe #include <pthread.h> #include <stdio.h> #include <time.h>…
-
1
votes2
answers102
viewsQ: How does the pthread_cond_timedwait() function work?
The purpose of this function is to show the hours, wait for 2 seconds, and show the hours again to make sure that 2 seconds have passed. I am not using sleeps as this function is to help me…