Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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

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.