Questions tagged [pthread-join]

The `pthread_join()` function is part of pthread.h used to wait for another thread to finish executing.

A call to pthread_join(t, ...) suspends execution of the caller's thread. It does not return until thread t has finished executing.

Linux Man page

257 questions
-3
votes
1 answer

i wanna know what's the diffrent between mutex_lock and pthread_join?

What's the difference between mutex_lock and pthread_join in these two source codes? They seem both to do the same thing, making the main function wait for the thread to finish execution. This code: #include "philo.h" typedef struct s_bablo { …
sFinoe
  • 1
  • 1
-3
votes
1 answer

Threaded application fails for 32bit mode while it works fine for 64bit mode

I have a normal server application which hits SIGSEGV during booting. Code involved in SIGSEGV part contains pthread_cond_wait, pthread_setcancelstate, pthread_cond_timedwait, pthread_cleanup_push and pthread_cleanup_pop. #include…
1 2 3
17
18