Subj : Re: Multi-threading architecture To : comp.programming.threads From : Markus Elfring Date : Thu Sep 22 2005 10:00 pm > I am writing a Muti threaded(using pthreads) application which contains > 5 threads to answer the requests. I block the thread when not in use > and notify them when there is a request. When my app is flooded with > requests , it seems that only one thread is getting used for most of > the time. Is there any way to make all the threads work at the same time ?? Yes, of course normally. Do you use a proper thread pool? Would you like to show any code example from your approach? Can you reuse a higher level programming library? > If done will it increase the processing speed ?? It depends on the number of processors and the amount of input/output operations with devices. Did you read about such technical details and other design factors in previous discussions? > Is it essential to block a thread or is there any other design which > will increase the processing speed ( without taking up all the CPU ) ?? Would you like to apply non-blocking algorithms? Regards, Markus .