in reply to Re: Thread creation failed: pthread_create returned 11 (races, leaks)
in thread Thread creation failed: pthread_create returned 11

Based on what you said, it seems those threads take a bit of time to get created. In that case, will it be more efficient if I keep 4 running threads and pass the messages to the threads using a queue; rather than creating new threads every time ?
  • Comment on Re^2: Thread creation failed: pthread_create returned 11 (races, leaks)