



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Start new transaction
int start() Returns:
if there is an active transaction tId
(a new Transaction Identifier) otherwise
If possible, read block at blockAddr on behalf of transaction tId from disk into main memory and save a pointer to it in block
int read( int blockAddr, int tId, int *block) Returns:
if successful,
otherwise
tell
that transaction tId has updated a block at blockAddr
int write( int blockAddr, int tId) Returns:
if there is no cached entry for blockAddr 1 otherwise
Try to commit transaction tId
int commit( int tId) Returns:
if successful,
otherwise
Abort transaction tId
int abort( int tId) Returns: