Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

If I have

  • A kernel with CONFIG_HIGH_RES_TIMERS=y,
  • A coarse CONFIG_HZ (say, 100)
  • and a file descriptor from timerfd_create with a sub-jiffy expiration

Should a call to select() on this timer return before the next jiffy, as say, clock_nanosleep would?

share|improve this question
add comment

1 Answer 1

up vote 2 down vote accepted

Both the select() timeout and the timerfd_create() timer are implemented with high-resolution timers on any recent kernel.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.