also, on the same box a similar C program (posted below) has no problem starting 5000+ threads.
#include <stdlib.h> #include <stdio.h> #include <sys/time.h> #include <pthread.h> 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 < num_threads; j++) { pthread_create (&tid, NULL, run, NULL); printf("created thread %d\n",j); fflush(stdout); } sleep(1000); } -- http://mail.python.org/mailman/listinfo/python-list