Subj : Re: Multi threading architecture To : comp.programming.threads From : David Schwartz Date : Thu Sep 22 2005 01:10 pm "jambu" wrote in message news:1127389226.565404.176290@g43g2000cwa.googlegroups.com... > 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 ?? If done will it increase the processing speed ?? It depends upon a huge number of factors. If there's only one CPU, generally keeping the same thread running for as long as possible is the best you can do. > 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 ) ?? Huh? Increasing processing speed is the same thing as using more CPU. > I know that the questions arised are not simple , i have put forth > all these questions after giving a try over some more techniques and i > will be happy if i get some pointers for the solution. Give us some more details about your application. DS .