hi,
I have created a echo server which accepts request from client , for each client request processing my server creates new thread but after creating 305 thread it says "Cannot allocate memory" Errocode = 12.
I have close socket of both sides as well as use PTHREAD_CREATE_DETACHED flage while thread creation.
I am working on CentOS (linux) and using pthread_create() function for thread creation.
your help will be appriciated.
Thanks
Abhinay