• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: real-time mode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: real-time mode


  • Subject: Re: real-time mode
  • From: Jeff Moore <email@hidden>
  • Date: Thu, 29 Nov 2001 15:28:19 -0800

on 11/29/01 2:57 PM, David Shaffer <email@hidden> wrote:

>> I still get popping every 20 seconds or so... ????
>> The input level seems to go to 0 for a few milliseconds.
>>
>
> I really feel that there is a thread priority problem with the IOProcs

Doubtful. The HAL's IOThreads are all time constraint threads. They tend to
run when they're supposed to run. On single processor systems, I generally
see 75-1505S of scheduling latency. On dual processor systems, it's usually
around 20-505S.

When they don't run as scheduled it is because the system is under severe
load (much more than just thrashing the mouse around will give you).

> If I, for instance, bring another application to the foreground and
> start moving the scrollbar back and forth, the app starts popping
> continuously.

Most likely your feeder threads just aren't running often enough. Elevating
their priority with the time constraint policy may be what you need.

If you aren't using a feeder thread, then you'll have to tell me a little
more about what you are doing so I can help figure out why you are getting
skipping.

> Also, attaching ThreadViewer causes continuous popping.

Attaching ThreadViewer requires doing lots of nasty things to the process in
the kernel. It isn't surprising that it causes glitches.

Attaching with gdb will doing the same thing, as do using printf and friends
in your IOProc.

> I was unable to find relevant docs on priority scheduling of threads;
> or, how to give the audio threads more priority.
>
> I am new to this discussion group (since 11/21/01) so I might not have
> access to some info that you have.

I'm pretty sure that this list is archived. My previous posts about the time
constraint policy and how to use it are probably the best documentation in
this context.

--

Jeff Moore
Core Audio
Apple


  • Follow-Ups:
    • Re: real-time mode
      • From: Jeff Moore <email@hidden>
References: 
 >Re: real-time mode (From: David Shaffer <email@hidden>)

  • Prev by Date: Re: real-time mode
  • Next by Date: Streams, Channels: How do they relate?
  • Previous by thread: Re: real-time mode
  • Next by thread: Re: real-time mode
  • Index(es):
    • Date
    • Thread