TMF Application Programmer's Guide (G06.26+)
Designing Multithreaded Processes
HP NonStop TMF Application Programmer’s Guide—522419-005
3-6
Checkpointing Strategy
Figure 3-1. The Flow of an Individual Thread
VST002.vsd
SUSPEND
AWAITIO
Completion?
More
WRITEREADs to be
performed?
No
Yes
Issue Nowait READ
to get terminal input.
Issue nowait
ENDTRANSACTION
call.
Call
BEGINTRANSACTION.
AWAITIO
Completion?
No
Yes
YesNo
Issue nowait
WRITEREAD call
to server.
No
Yes
SUSPEND
SUSPEND
Set up local storage with
all the data necessary to
start the transaction.
Call
CHECKPOINT.
Include the transaction tag
and the TFILE's file
number in the parameter
list along with the
addresses of all local data
blocks necessary to start
the transaction.
Include the
TFILE's file
number in the
parameter
list.
Call
CHECKPOINT.
AWAITIO
Completion
?