bug-gdb
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

linux thread limit


From: Nicolas Vignal
Subject: linux thread limit
Date: Mon, 19 Feb 2001 17:43:02 +0100

Hi

I cannot launch more than 33 threads under gdb

gdb with insight-20010202 gives this message :
Error: Cannot find thread 33: invalid thread handle

gdb 5.0 gives : thread_db: map_id2thr failed: invalid thread handle  

Please advice

Regards

        Nicolas



#include <pthread.h>

#define MAX_THREAD 40

int function()
{
  while(1);
}


int main(int argc, char *argv[])
{
  int i=0;

  pthread_t threadID=-1;

  for(i=0;i<MAX_THREAD;i++)
  {
    pthread_create(&threadID, NULL, function, NULL);
  }

  return 0;
}



reply via email to

[Prev in Thread] Current Thread [Next in Thread]