I have a application in which I have to sleep for a very short time (in order of few micro seconds ). Fortunately my Linux kernel 2.8.* supports high res timers.
I have 2 options to sleep now
- nanosleep
- select() with a timeout.
I choose to use select() as it is quite portable. Does select() use the normal kernel timers ( jiffies) or it uses the hi res timers ?
Can this provide sleep functionality in order of microseconds ?