2020-03-24

Mar 25 In-Class Exercise .

Post your solution to the Mar 25 In-Class Exercise to this thread.

Best,

Chris

Post your solution to the Mar 25 In-Class Exercise to this thread. Best, Chris
2020-03-25

-- Mar 25 In-Class Exercise

Resource Description for trans.PNG

(Edited: 2020-03-25)
((resource:trans.PNG|Resource Description for trans.PNG))

-- Mar 25 In-Class Exercise

Resource Description for Screen Shot 2020-03-25 at 5.33.43 PM.png

(Edited: 2020-03-25)
((resource:Screen Shot 2020-03-25 at 5.33.43 PM.png|Resource Description for Screen Shot 2020-03-25 at 5.33.43 PM.png))

-- Mar 25 In-Class Exercise

Resource Description for Screen Shot 2020-03-25 at 5.31.21 PM.png

(Edited: 2020-03-25)
((resource:Screen Shot 2020-03-25 at 5.31.21 PM.png|Resource Description for Screen Shot 2020-03-25 at 5.31.21 PM.png))

-- Mar 25 In-Class Exercise
{

! Transaction Op !! Value s !! Memory Value A !! Disk Value A !! Value t !! Memory Value B !! Disk Value B !! Log Records |-

<START T>
I(A)334
-
R(A,s)3334
-
s:=s + 47334
-
W(A,s)7734<T,A,3>
-
FLUSH LOG7734
-
I(B)77344
-
R(B,t)773444
-
t:= t*s7732844
-
W(B,t)77328284<T,B,4>
-
FLUSH LOG77328284
-
O(A)77728284
-
O(B)777282828
-
<COMMIT T>
}
(Edited: 2020-03-25)
{| |- ! Transaction Op !! Value s !! Memory Value A !! Disk Value A !! Value t !! Memory Value B !! Disk Value B !! Log Records |- | || || || || || || || <START T> |- | I(A) || || 3 || 3 || || || 4 || |- | R(A,s) || 3 || 3 || 3 || || || 4 || |- | s:=s + 4 || 7 || 3 || 3 || || || 4 || |- | W(A,s) || 7 || 7 || 3 || || || 4 || <T,A,3> |- | FLUSH LOG || 7 || 7 || 3 || || || 4 || |- | I(B) || 7 || 7 || 3 || || 4 || 4 || |- | R(B,t) || 7 || 7 || 3 || 4 || 4 || 4 || |- | t:= t*s || 7 || 7 || 3 || 28 || 4 || 4 || |- | W(B,t) || 7 || 7 || 3 || 28 || 28 || 4 || <T,B,4> |- | FLUSH LOG || 7 || 7 || 3 || 28 || 28 || 4 || |- | O(A) || 7 || 7 || 7 || 28 || 28 || 4 || |- | O(B) || 7 || 7 || 7 || 28 || 28 || 28 || |- | || || || || || || || <COMMIT T> |}

-- Mar 25 In-Class Exercise
{

! Transaction Op !! Value s !! Value t !! Memory Value A !! Disk Value A !! Memory Value B !! Disk Value B !! Log Records |-

34&lt;START T&gt;
I(A)334
-
R(A,s)3334
-
s:=s + 47334
-
W(A,s)7734&lt;T,A,3&gt;
-
FLUSH LOG7734
-
I(B)77344
-
R(B,t)747344
-
t:=t*s7287344
-
W(B,t)72873284&lt;T,B,4&gt;
-
FLUSH LOG72873284
-
O(A)72877284
-
O(B)728772828
-
&lt;COMMIT T&gt;
-
FLUSH LOG728772828
}
{| |- ! Transaction Op !! Value s !! Value t !! Memory Value A !! Disk Value A !! Memory Value B !! Disk Value B !! Log Records |- | || || || || 3 || || 4 || <START T> |- | I(A) || || || 3 || 3 || || 4 || |- | R(A,s) || 3 || || 3 || 3 || || 4 || |- | s:=s + 4 || 7 || || 3 || 3 || || 4 || |- | W(A,s) || 7 || || 7 || 3 || || 4 || <T,A,3> |- | FLUSH LOG || 7 || || 7 || 3 || || 4 || |- | I(B) || 7 || || 7 || 3 || 4 || 4 || |- | R(B,t) || 7 || 4 || 7 || 3 || 4 || 4 || |- | t:=t*s || 7 || 28 || 7 || 3 || 4 || 4 || |- | W(B,t) || 7 || 28 || 7 || 3 || 28 || 4 || <T,B,4> |- | FLUSH LOG || 7 || 28 || 7 || 3 || 28 || 4 || |- | O(A) || 7 || 28 || 7 || 7 || 28 || 4 || |- | O(B) || 7 || 28 || 7 || 7 || 28 || 28 || |- | || || || || || || || <COMMIT T> |- | FLUSH LOG || 7 || 28 || 7 || 7 || 28 || 28 || |}

-- Mar 25 In-Class Exercise

Resource Description for Screen Shot 2020-03-25 at 5.34.06 PM.png

(Edited: 2020-03-25)
((resource:Screen Shot 2020-03-25 at 5.34.06 PM.png|Resource Description for Screen Shot 2020-03-25 at 5.34.06 PM.png))

-- Mar 25 In-Class Exercise
{

! Transaction Op !! Value s !! Value t !! Memory Value A !! Memory Value B !! Disk Value A !! Disk value B !! Log Records |-

&lt;START T&gt;
I(A)334
-
R(A,s)3334
-
s:= s + 47334
-
W(A,s)7734&lt;T, A, 3&gt;
-
FLUSH LOG7734
-
I(B)77434
-
R(B,t)747434
-
t:= t * s7287434
-
W(B,t)72872834&lt;T, B, 4&gt;
-
FLUSH LOG72872834
-
O(A)72872874
-
O(B)728728728
-
&lt;COMMIT T&gt;
-
FLUSH LOG
}
{| |- ! Transaction Op !! Value s !! Value t !! Memory Value A !! Memory Value B !! Disk Value A !! Disk value B !! Log Records |- | || || || || || || || <START T> |- | I(A) || || || 3 || || 3 || 4 || |- | R(A,s) || 3 || || 3 || || 3 || 4 || |- | s:= s + 4 || 7 || || 3 || || 3 || 4 || |- | W(A,s) || 7 || || 7 || || 3 || 4 || <T, A, 3> |- | FLUSH LOG || 7 || || 7 || || 3 || 4 || |- | I(B) || 7 || || 7 || 4 || 3 || 4 || |- | R(B,t) || 7 || 4 || 7 || 4 || 3 || 4 || |- | t:= t * s || 7 || 28 || 7 || 4 || 3 || 4 || |- | W(B,t) || 7 || 28 || 7 || 28 || 3 || 4 || <T, B, 4> |- | FLUSH LOG || 7 || 28 || 7 || 28 || 3 || 4 || |- | O(A) || 7 || 28 || 7 || 28 || 7 || 4 || |- | O(B) || 7 || 28 || 7 || 28 || 7 || 28 || |- | || || || || || || || <COMMIT T> |- | FLUSH LOG || || || || || || || |}

-- Mar 25 In-Class Exercise

Resource Description for 3-25_in-class.PNG

(Edited: 2020-03-25)
((resource:3-25_in-class.PNG|Resource Description for 3-25_in-class.PNG))

-- Mar 25 In-Class Exercise

Resource Description for 157b_m25_classActivity.png

(Edited: 2020-03-25)
((resource:157b_m25_classActivity.png|Resource Description for 157b_m25_classActivity.png))
[ Next ]
X