Search Results

Search found 1 results on 1 pages for 'user351990'.

Page 1/1 | 1 

  • Why are nanosleep() and usleep() too slow?

    - by user351990
    I have a program that generates packets to send to a receiver. I need an efficient method of introducing a small delay between the sending of each packet so as not to overrun the receiver. I've tried usleep() and nanosleep() but they seem to be too slow. I've implemented a busy wait loop and had more success, but it's not the most efficient method, I know. I'm interested in anyone's experiences in trying to do what I'm doing. Do others find usleep() and nanosleep() to function well for this type of application? Thanks, Danny Llewallyn

    Read the article

1