Subj : linux pthread_cancel resource temporarily unavailable To : comp.programming.threads From : sbitzer Date : Thu Mar 17 2005 02:18 am Hi, I have a problem cancelling threads with pthread_cancel under Linux. The logic is the following: Start a few threads in a mother thread which read different device files. The thread which finnishes first will cancel all sister threads. The mother thread joins all sister threads and repeats the whole procedure. This works without problems for a while, but after some time (in which the program does not need to run) it is not possible to cancel sister threads anymore and pthread_cancel is returning "resource temporarily unavailable" when the program is run the next time. I thought I had solved all memory problems, but now I'm wondering whether the error is produced by a memory leak or is a problem with threads in Linux. Anyway, I would be happy, if anyone can tell me under which conditions the "resource temporarily unavailable"-error is produced. Thanks, Sebastian .