Thank you for your response Gilles. I set thread to SCHED_FIFO policy with chrt command, Prio 99. But there is no improvement. Also nanosleep do not help. The kernel is 2.6.26. What could be reason that kernel is not restart thread when time is over?
Jens 2012/7/3, Gilles Chanteperdrix <[email protected]>: > On 07/03/2012 03:30 PM, Jens Köhler wrote: >> Hello all, >> >> I have a normal linux application running. Application waits in >> following loop normally about 8 ms. Delay time of 8ms is reliable. >> >> do >> { >> remain(&remainTime); >> >> if ((remainTime.tv_sec != 0L) || (remainTime.tv_usec != 0L)) >> result = select(0, NULL, NULL, NULL, &remainTime); >> else >> break; >> } >> while ((result == -1) && (errno == EINTR)); >> >> If there is running in parallel a Xenomai application the wait time >> could be up to 40 ms accidentally. What could be the reason? > > Are you sure the "select" service guarantees delays with the version of > the linux kernel you use? Is the thread running with SCHED_FIFO policy? > If yes, what happens if you replace with nanosleep? > > -- > Gilles. > > _______________________________________________ Xenomai mailing list [email protected] http://www.xenomai.org/mailman/listinfo/xenomai
