next up previous 61
Next: Controlling task
Up: ADAM Guide to Writing Instrumentation Tasks
Previous: Controlling tea and coffee making


Cancelling in multi-task subsystems

This example was provided by Ian Smith (ROE). When the controlling task receives a CANCEL, it sends a CANCEL to the subsidiary task. The controlling task then requests ACT__MESSAGE to wait for the final acknowledgement from the OBEY in the subsidiary task. The final completion status from the subsidiary task is obtained by the controlling task by the call to TASK_GET_REASON, irrespective of whether the final completion was due to a CANCEL.





next up previous 61
Next: Controlling task
Up: ADAM Guide to Writing Instrumentation Tasks
Previous: Controlling tea and coffee making

ADAM Guide to Writing Instrumentation Tasks
Starlink User Note 134
B D Kelly
A J Chipperfield

30 March 1992
E-mail:ussc@star.rl.ac.uk

Copyright © 2000 Council for the Central Laboratory of the Research Councils