TOC PREV NEXT INDEX DOC LIST MASTER INDEX



Deadlock Detection

The Apex runtime is able to detect most forms of deadlock between tasks. When Deadlock is detected, the runtime prints the message "Deadlock Detected" and exits. This is normally done after the main subprogram returns and when the following two conditions are satisfied:

However, to accommodate interrupt entries, protected procedure handlers, and attached ISRs, either of the following conditions inhibits a program from exiting:

Note: To allow a program with open interrupt entries to exit upon the completion of the main program, code the simple accept statement as a select or terminate statement, as illustrated:


Rational Software Corporation 
http://www.rational.com
support@rational.com
techpubs@rational.com
Copyright © 1993-2002, Rational Software Corporation. All rights reserved.
TOC PREV NEXT INDEX DOC LIST MASTER INDEX TECHNOTES APEX TIPS