Message: 5
Date: Tue, 3 May 2005 03:03:32 +0200
From: Berend Schmid <email@hidden>
Subject: NSTask and Processor Overloads
To: email@hidden
Message-ID: <email@hidden">email@hidden>
Content-Type: text/plain; charset="us-ascii"
Hi!
I have got an audio recording application based on CoreAudio.
I would like to launch a NSTask from within my application but nearly
everytime my NSTask gets launched there are audio dropouts and I get a
processor overload (kAudioDeviceProcessorOverload) notification.
I'm afraid that it isn't possible to eliminate the possibility of this happening. The VM paging thread is the highest priority thread in the system. So, when you launch an NSTask it is possible for the system to page and interrupt your Core Audio threads. That said, I have never had this problem. You must already be pushing your machine pretty hard when you launch the NSTask for this to happen.
Is it possible to launch the task with a lower priority or is there any
other option for not overloading the processor when launching the task?
Not that I know of.
Dominic Feira / Code Monkey / Ambrosia Software, Inc.