

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!


1/11/ 05 1
1/11/ 05 2
1/11/ 05 3
1/11/ 05 4
1/11/ 05 5
1/11/ 05 6
PtT [a] 1 2 3 ... PtT [b] 1 2 3 ...
a b
Pt 1 [a] P1a 1 2 3 ... Pt 1 [b] 1 2 3 ...
P2a
P1b
P2b
Initial
M ain M em ory For T
M aster
2
1/11/ 05 7
To W rite a Page Pi
1/11/ 05 8
A fterW riting Page P2b
PtT [a] 1 2 3 ... PtT [b] 1 2 3 ...
a b
Pt 1 [a] P1a 1 2 3 ... Pt 1 [b] 1 2 3 ...
P2a
P1b
P2b O ld
Initial D State
I
S
K
M ain M em ory For T
M aster
P2b N ew
1/11/ 05 9
A fterW riting Page P1a
PtT [a] 1 2 3 ... PtT [b] 1 2 3 ...
a b
P1a O ld
Pt 1 [a] 1 2 3 ... Pt 1 [b] 1 2 3 ...
P2a
P1b
P2b O ld
Initial D State
I
S
K
M ain M em ory For T
M aster
P2b N ew
P1a N ew
1/11/ 05 10
W hatifthe System Fails?
1/11/ 05 11
To Com m it
PtT [a] 1 2 3 ... PtT [b] 1 2 3 ...
a b
P1a O ld
Pt 1 [a] 1 2 3 ... Pt 1 [b] 1 2 3 ...
P2a
P1b
P2b O ld
Initial D State
I
S
K
M aster
P2b N ew
P1a N ew
1.Firstcopy PtT [a]and PtT[b]to disk
1/11/ 05 12
To Com m it(cont’d)
PtT [a] 1 2 3 ... PtT [b] 1 2 3 ...
a b
P1a O ld
Pt 1 [a] 1 2 3 ...
Pt 1 [b] 1 2 3 ...
P2a
P1b
P2b O ld
Initial D State
I
S
K
M aster
P2b N ew
P1a N ew
2.Then overw rite M asterto pointto the new Pt’s.