post the minimal code that demonstrates your problem
also, do you realize that creating threads has a pretty big overhead? If you are looking at possibly hundreds of connections, it is better to deal with that using a minimal number of threads - certainly not 100, 1 would do fine but there's no reason to hit the program with a hammer until it uses only 1 thread. There is a very good reason Apache does not fork for every connection.
Last edited by pinniped; 06-02-2008 at 06:25 AM.
|