Copyright © Cloud Software Group, Inc. All Rights Reserved
Copyright © Cloud Software Group, Inc. All Rights Reserved


Chapter 14 Fault Tolerance Programming : Ensure Timely Event Processing

Ensure Timely Event Processing
The fault tolerance callback function is the only channel of information from Rendezvous fault tolerance software to your program. Rendezvous fault tolerance software can call the callback function at virtually any time—whether active or inactive, a member program must be ready for a callback event.
To ensure timely processing of fault tolerance events, follow these guidelines:
Ensure that callback functions return promptly. This rule applies to all callback functions that dispatch in the same thread as the fault tolerance callback function.
 
If a callback function monopolizes the dispatch thread (for example, by blocking, or with a lengthy computation), then the fault tolerance callback function might remain in its queue waiting for dispatch. Such backlog could cause problems such as these:

Copyright © Cloud Software Group, Inc. All Rights Reserved
Copyright © Cloud Software Group, Inc. All Rights Reserved