Hi all:
I have a user mode application which uses nanosleep in a while(1) loop, unfortunately it brings a huge amount of local time interrupts, which greatly damage the application performance, I don't know why nanosleep can cause this large increase on local timer interrupts?? How should I do to eliminate this unwanted interrupts. Thanks for your help.
May I know which Unix/Linux you are using and what interval you set for nanosleep? Usually we use sleep with about 1 seconds onwards. 1 second is a pretty long time for the computer CPU. But if we are using less than 1 second hmmm....