Re: [linux-audio-dev] Sequencer Sync Woes

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: Re: [linux-audio-dev] Sequencer Sync Woes
From: Paul Davis (pbd_AT_Op.Net)
Date: Tue Feb 06 2001 - 14:54:08 EET


Karl writes:

>Another option is to use select on null file descriptors. The nanosleep
>man page mentions that on intel the minimum sleep is 10ms or if the
>process SCHED_FIFO and the pause is less that 2ms it will busy wait (which
>is not what you want of course). Paul's suggestion will give you better
>resolution at the cost of portability (which you may or may not care
>about). The select trick should, I think, give you better than 10ms
>though I don't have numbers to prove this.

select, poll and sleep all use the same basic kernel mechanism for
timing/queing/blocking. last time i looked, there was a single code
path for this stuff, and no way to improve on it.

--p


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Tue Feb 06 2001 - 15:06:59 EET