ADC Membership Technical Business Join ADC
Search Advanced Search
Technical Note TN1003
On the Deferred Task Manager


This Note highlights two points - interrupt latency, and task record ownership - that might be unclear after reading the chapter "Deferred Task Manager" in Inside Macintosh:Processes.

This Note is intended for all developers who need to install a lengthy interrupt task capable of running with all interrupts enabled.

 [Oct 1 1995]

About Deferred Task Latency

There may be significant latency incurred between installing a deferred task with DTInstall and when that task is performed. This time is not deterministic and cannot be controlled. Real-time response cannot be guaranteed on Macintosh computers with or without the use of deferred tasks.

Back to top

About the Ownership of the DeferredTask Record

When you install a deferred task with DTInstall, you are giving your DeferredTask record to the system; the system owns the record until the routine designated by the DeferredTask record's dtAddr field is entered. During the time the system owns a DeferredTask record, you must not change any of the fields of that record.

Similarly, you must not depend on the contents of the record when it is owned by the system. The system is free to alter the record in any fashion while it has ownership and restores the record to its original state prior to invoking the deferred task. You must not install a DeferredTask record which is already owned by the system. Finally, you must not use the dtReserved field for any purpose; it should be set to zero prior to installing a deferred task with DTInstall.

Back to top


Inside Macintosh: Processes, Chapter 6, The Deferred Task Manager

develop, Issue 13, Asynchronous Routines on the Macintosh

Change History


Originally written. Most of the original information has been incorporated into Inside Macintosh: Processes.


The references section has been updated. Information found in the chapter "Deferred Task Manager" in Inside Macintosh:Processes, has been deleted.

Back to top


Acrobat gif

Acrobat version of this Note (44K)


Back to top

Technical Notes by Date | Number | Technology | Title
Developer Documentation | Technical Q&As | Development Kits | Sample Code

Gray line

Contact ADC |  ADC Site Map |  ADC Advanced Search
For information about Apple Products, please visit
Contact Apple | Privacy Notice
Copyright © 2002 Apple Computer, Inc. All rights reserved.