Recent content by dchou4u

  1. D

    strange long latency around a usleep call

    Thank you for your reply. Really appreciate. I will definitely try stracing it. The timeofday() and usleep() is in an infinite while loop, so it may get a little noisy when doing strace. But it is hard to imagine timeofday() being delayed in the millisecond range. It feels more like the process...
  2. D

    strange long latency around a usleep call

    Hi, I have a very simple hello world program that prints hello world, and then uses a pair of gettimeofday() to bracket around a usleep(50) call. I will then printf if the elapsed time between the two gettimeofday() calls is greater than 5ms. When running on a Linux Vmware VM, and even on a...
Top