I'm working in a Ubuntu virtual machine on vSphere. My application is waiting on a pthread signal (sem_t) every 1 second. when I strace the system call, find the system call is much quicker returned than 1 second. The result by strace is as below.
futex(0x7f4461035200, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 0, {1, 0}, ffffffff) = -1 ETIMEDOUT (Connection timed out)
Anyone knows the reason?