>>You can not create 40000 threads, because each thread >>defaults has 2M stack, you will out of address space. David, I don't attempt to create 40k threads, i barely increase the limit for single process for 40k. I like a test libmicro with default sets. Ricardo A. Reis UNIFESP