thread limit in python

2005-08-11 Thread danieldsmith
hello all, i have run into a problem where i cannot start more than 1021 threads in a python program, no matter what my ulimit or kernel settings are. my program crashes with 'thread.error: can't start new thread' when it tries to start the 1021st thread. in addition to tweaking my ulimit setting

Re: thread limit in python

2005-08-11 Thread danieldsmith
also, on the same box a similar C program (posted below) has no problem starting 5000+ threads. #include #include #include #include void * run (void *arg) { sleep(1000); } int main(int argc, char *argv[]) { int j; pthread_t tid; int num_threads = atoi(argv[1]); for (j=0; j

Re: thread limit in python

2005-08-11 Thread danieldsmith
disregard the C example. wasn't checking the return code of pthread_create. the C program breaks in the same place, when creating the 1021st thread. -- http://mail.python.org/mailman/listinfo/python-list

Re: thread limit in python

2005-08-12 Thread danieldsmith
i modified my C test program (included below) to explicitly set the default thread stack size, and i'm still running into the same problem. can you think of any other thing that would possibly be limiting me? and sorry to continue to post here. since this is occurring in both c and python, i thi