Scholieren.com forum

Scholieren.com forum (https://forum.scholieren.com/index.php)
-   Huiswerkvragen: Exacte vakken (https://forum.scholieren.com/forumdisplay.php?f=17)
-   -   [WI] Database Transactions (https://forum.scholieren.com/showthread.php?t=1900213)

lgsony 29-05-2015 23:45

Database Transactions
 
Ik heb zoveel videos gekeken over two phase locking maar snap het nog steeds niet :lisa:

http://imageshack.com/a/img540/5281/odkzMy.png


We use the following abbreviations:

S(I) for obtaining a shared lock on item I

X(I) for obtaining an exclusive lock on item I

US(I) for releasing a shared lock on item I

UX(I) for releasing an exclusive lock on item I

Note that a transaction is allowed to upgrade and downgrade a lock:

Upgrade: A transaction can acquire a shared lock S(I) and later an exclusive lock X(I) on the same item; this is called upgrade of the lock.

Downgrade: If a transaction holds both a shared lock S(I) and an exclusive lock X(I) on the same item I, then, in the unlocking phase, it can release the exclusive lock UX(I) while keeping the shared lock; this is called a downgrade of the lock.

Kan iemand mij aub uitleggen waar ik mee moeten beginnen en waar ik rekening mee moet houden?


Alle tijden zijn GMT +1. Het is nu 19:26.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.