Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: James Courtier-Dutton <James@superbug.demon.co.uk>
To: Paul Davis <paul@linuxaudiosystems.com>
Cc: Adam Tla/lka <atlka@pg.gda.pl>, Alsa-devel@lists.sourceforge.net
Subject: Re: Re: The obsolence of OSS, Was: big smiley
Date: Wed, 25 Feb 2004 16:03:40 +0000	[thread overview]
Message-ID: <403CC75C.5070409@superbug.demon.co.uk> (raw)
In-Reply-To: <200402251537.i1PFbwSv026765@dhin.linuxaudiosystems.com>

Paul Davis wrote:
>>The ideal scheduler for realtime apps would be one that has an api that 
>>allows for a call like "schedule me at exactly 10ms intervals+-1ms".
> 
> 
> no, thats not true.
> 
> the system clock does not run in sync with the sample clock. the drift
> in this would become noticeable in a few minutes.

I know that. I was saying that we should be able to use the sample clock 
  in scheduling descisions as well as the system clock, but as you say, 
for sound, we don't really care about the sample clock, only the 
interrupt that happens as a result.

It would still be nice to have a system clock based interval process for 
applications that require activity at specific intervals, but are not to 
do with sound or video.

> 
> the only time to run an audio app is ASAP after the interrupt from the
> device is recieved (assuming minimum latency; there is a more
> involved, but still interrupt-driven deadline with non-minimal
> latency).
> 
> --p
> 

An audio hardware interrupt can interrupt any process at any time.
Is there already a procedure in linux so that the interrupt_handler can 
cause the scheduler to select a particular process to run immeadiately 
after this interrupt_handler has finished?
I can see problems with the following setup: -
Audio interrupt occurs
Audio interrupt_handler finishes.
Audio user space process get control of CPU.
Some other interrupt occurs
Some other interrupt_handler informs the scheduler to run xyz process next.
Question: -
Which process should be run next?
Continue with the audio user space process, or start the new xyz process?

Cheers
James


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click

  reply	other threads:[~2004-02-25 16:03 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-24 14:47 big smile Jaroslav Kysela
2004-02-24 15:19 ` Peter Antypas
2004-02-24 15:21 ` James Courtier-Dutton
2004-02-24 15:28   ` Jaroslav Kysela
2004-02-24 15:58     ` James Courtier-Dutton
2004-02-24 16:43     ` Giuliano Pochini
2004-02-24 16:08   ` Mihai T. Lazarescu
2004-02-24 21:54 ` The obsolence of OSS, Was: " Benno Senoner
2004-02-25 11:20   ` Adam Tla/lka
2004-02-25 11:40     ` Jan Depner
2004-02-25 11:53     ` Takashi Iwai
2004-02-25 13:20       ` Adam Tla/lka
2004-02-25 17:48       ` Jussi Laako
2004-02-25 18:41         ` Paul Davis
2004-02-25 12:27     ` Måns Rullgård
2004-02-25 18:58       ` Dan Hollis
2004-02-25 13:09     ` Jaroslav Kysela
2004-02-25 13:37       ` Adam Tla/lka
2004-02-25 14:17         ` Paul Davis
2004-02-25 14:50           ` Re: The obsolence of OSS, Was: big smiley Adam Tla/lka
2004-02-25 15:12             ` Takashi Iwai
2004-02-25 15:12             ` Paul Davis
2004-02-25 15:20             ` James Courtier-Dutton
2004-02-25 15:37               ` Paul Davis
2004-02-25 16:03                 ` James Courtier-Dutton [this message]
2004-02-25 16:10                   ` Paul Davis
2004-02-25 16:12                   ` Paul Davis
2004-02-25 13:42     ` Re: The obsolence of OSS, Was: big smile James Courtier-Dutton
2004-02-25 14:03     ` Giuliano Pochini
2004-02-25 17:45   ` Jussi Laako

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=403CC75C.5070409@superbug.demon.co.uk \
    --to=james@superbug.demon.co.uk \
    --cc=Alsa-devel@lists.sourceforge.net \
    --cc=atlka@pg.gda.pl \
    --cc=paul@linuxaudiosystems.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox