title: How to improve latency in a multi-threaded application?
body: <p>I am having a rather peculiar problem and I don't really know where to start looking for what is going on.</p>
  
  <p>I have a heavily multi-threaded code [single application, 20+ threads] running. I send a sleep signal to the code and seconds later cont signal to wake up. When the application does wake up, if I send some message to one of the threads from an external app the latency is high and the response does not it make it within my expected timeout. This is about 10% of the times, remaining 90% code is running as it should.</p>
  
  <p>For what it's worth this is C++ on RHEL6 and a lot of communication is happening by either TCP or multi-cast between applications. Maybe I need to do kernel tuning, not sure. </p>
  
  <p>Any ideas where I should start looking? </p>