Answer the question
In order to leave comments, you need to log in
How to terminate all threads immediately after one of the threads ends in C using only pthread_detach and pthread_join?
Solving the problem of dining philosophers, I came across such a problem. It is necessary that when one philosopher dies, all other threads stop, and the program ends.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question