next up previous contents index
Next: The Implementation Up: The Model Previous: Transaction Primitives   Contents   Index


Existing Applications

Existing applications could be ported easily using:

Note: The $\infty$ in the above read-statements means a sufficiently large number (so big that it will last the whole of the systems lifetime).

Default values for $CT \! B$, $MT \! B$, and $ET \! B$ pr. system or application could be used implicitly when running existing applications (unchanged). However this would require new daemons to catch, for instance, access to remote files via NFS, e.g. as it is done in [32].

Figure 5.9: Example use of transactions (1)
\begin{figure}
\begin{verbatim}transaction_status do_transfer(ctb,mtb,etb,tid)...
...t_close(*tid,fpA);
return end_transaction(*tid);
}\end{verbatim}\end{figure}

Figure 5.10: Example use of transactions (2)
\begin{figure}
\begin{verbatim}void main()
{
transaction_id tid;
transaction...
...nsfer failed");printf("Transfer succeeded\n'');
}\end{verbatim}\end{figure}



michael@garfield.dk
2000-10-13