-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoutput.txt
More file actions
executable file
·203 lines (183 loc) · 11.8 KB
/
output.txt
File metadata and controls
executable file
·203 lines (183 loc) · 11.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
Output
Line Operation b1;
Action Taken: Add transaction to transaction table, Added TransactionId is 1
Line Operation r1 (Y);
Action Taken: Add dataitem entry into lock table, Lock Status updated to 'Read Lock', Added dataitem is: Y, Added dataitem to transaction table in t_dataitem['Y'], TransactionId: 1
Line Operation w1 (Y);
Action Taken: Updating 'Read Lock' to 'Write Lock', , Modified dataitem is: Y, TransactionId: 1
Line Operation r1 (Z);
Action Taken: Add dataitem entry into lock table, Lock Status updated to 'Read Lock', Added dataitem is: Z, Added dataitem to transaction table in t_dataitem['Y', 'Z'], TransactionId: 1
Line Operation b2;
Action Taken: Add transaction to transaction table, Added TransactionId is 2
Line Operation r2 (X);
Action Taken: Add dataitem entry into lock table, Lock Status updated to 'Read Lock', Added dataitem is: X, Added dataitem to transaction table in t_dataitem['X'], TransactionId: 2
Line Operation w2 (X);
Action Taken: Updating 'Read Lock' to 'Write Lock', , Modified dataitem is: X, TransactionId: 2
Line Operation w1 (Z);
Action Taken: Updating 'Read Lock' to 'Write Lock', , Modified dataitem is: Z, TransactionId: 1
Line Operation e1;
Action Taken: End transaction, status updated to committed, TransactionId is 1, Unlock and release dataitems: ['Y', 'Z']
Line Operation r2 (Y);
Action Taken: Lock Status updated as 'Read lock' in the lock table , Modified dataitem is: Y, TransactionId: 2
Line Operation b3;
Action Taken: Add transaction to transaction table, Added TransactionId is 3
Line Operation r3 (Z);
Action Taken: Lock Status updated as 'Read lock' in the lock table , Modified dataitem is: Z, TransactionId: 3
Line Operation w3 (Z);
Action Taken: Updating 'Read Lock' to 'Write Lock', , Modified dataitem is: Z, TransactionId: 3
Line Operation w2 (Y);
Action Taken: Updating 'Read Lock' to 'Write Lock', , Modified dataitem is: Y, TransactionId: 2
Line Operation e2;
Action Taken: End transaction, status updated to committed, TransactionId is 2, Unlock and release dataitems: ['X', 'Y']
Line Operation r3 (X);
Action Taken: Lock Status updated as 'Read lock' in the lock table , Modified dataitem is: X, TransactionId: 3
Line Operation w3 (X);
Action Taken: Updating 'Read Lock' to 'Write Lock', , Modified dataitem is: X, TransactionId: 3
Line Operation e3;
Action Taken: End transaction, status updated to committed, TransactionId is 3, Unlock and release dataitems: ['Z', 'X']
Output
Line Operation b1;
Action Taken: Add transaction to transaction table, Added TransactionId is 1
Line Operation r1 (Y);
Action Taken: Add dataitem entry into lock table, Lock Status updated to 'Read Lock', Added dataitem is: Y, Added dataitem to transaction table in t_dataitem['Y'], TransactionId: 1
Line Operation w1 (Y);
Action Taken: Updating 'Read Lock' to 'Write Lock', , Modified dataitem is: Y, TransactionId: 1
Line Operation r1 (Z);
Action Taken: Add dataitem entry into lock table, Lock Status updated to 'Read Lock', Added dataitem is: Z, Added dataitem to transaction table in t_dataitem['Y', 'Z'], TransactionId: 1
Line Operation b2;
Action Taken: Add transaction to transaction table, Added TransactionId is 2
Line Operation r2 (X);
Action Taken: Add dataitem entry into lock table, Lock Status updated to 'Read Lock', Added dataitem is: X, Added dataitem to transaction table in t_dataitem['X'], TransactionId: 2
Line Operation w2 (X);
Action Taken: Updating 'Read Lock' to 'Write Lock', , Modified dataitem is: X, TransactionId: 2
Line Operation w1 (Z);
Action Taken: Updating 'Read Lock' to 'Write Lock', , Modified dataitem is: Z, TransactionId: 1
Line Operation r2 (Y);
Action Taken: Aborting Transaction , Ignore subsequent operations, TransactionId: 2
Line Operation e1;
Action Taken: End transaction, status updated to committed, TransactionId is 1, Unlock and release dataitems: ['Y', 'Z']
Line Operation b3;
Action Taken: Add transaction to transaction table, Added TransactionId is 3
Line Operation r3 (Z);
Action Taken: Lock Status updated as 'Read lock' in the lock table , Modified dataitem is: Z, TransactionId: 3
Line Operation w3 (Z);
Action Taken: Updating 'Read Lock' to 'Write Lock', , Modified dataitem is: Z, TransactionId: 3
Line Operation w2 (Y);
Action Taken: transaction already aborted, status updated to abort, TransactionId is 2
Line Operation e2;
Action Taken: Transaction already aborted, TransactionId state is: abort, TransactionId is 2
Line Operation r3 (X);
Action Taken: Lock Status updated as 'Read lock' in the lock table , Modified dataitem is: X, TransactionId: 3
Line Operation w3 (X);
Action Taken: Updating 'Read Lock' to 'Write Lock', , Modified dataitem is: X, TransactionId: 3
Line Operation e3;
Action Taken: End transaction, status updated to committed, TransactionId is 3, Unlock and release dataitems: ['Z', 'X']
Output
Line Operation b1;
Action Taken: Add transaction to transaction table, Added TransactionId is 1
Line Operation r1 (Y);
Action Taken: Add dataitem entry into lock table, Lock Status updated to 'Read Lock', Added dataitem is: Y, Added dataitem to transaction table in t_dataitem['Y'], TransactionId: 1
Line Operation w1 (Y);
Action Taken: Updating 'Read Lock' to 'Write Lock', , Modified dataitem is: Y, TransactionId: 1
Line Operation r1 (Z);
Action Taken: Add dataitem entry into lock table, Lock Status updated to 'Read Lock', Added dataitem is: Z, Added dataitem to transaction table in t_dataitem['Y', 'Z'], TransactionId: 1
Line Operation b2;
Action Taken: Add transaction to transaction table, Added TransactionId is 2
Line Operation r2 (X);
Action Taken: Add dataitem entry into lock table, Lock Status updated to 'Read Lock', Added dataitem is: X, Added dataitem to transaction table in t_dataitem['X'], TransactionId: 2
Line Operation w2 (X);
Action Taken: Updating 'Read Lock' to 'Write Lock', , Modified dataitem is: X, TransactionId: 2
Line Operation w1 (Z);
Action Taken: Updating 'Read Lock' to 'Write Lock', , Modified dataitem is: Z, TransactionId: 1
Line Operation r2 (Y);
Action Taken: Aborting Transaction , Ignore subsequent operations, TransactionId: 2
Line Operation b3;
Action Taken: Add transaction to transaction table, Added TransactionId is 3
Line Operation r3 (Z);
Action Taken: Aborting Transaction , Ignore subsequent operations, TransactionId: 3
Line Operation e1;
Action Taken: End transaction, status updated to committed, TransactionId is 1, Unlock and release dataitems: ['Y', 'Z']
Line Operation w3 (Z);
Action Taken: transaction already aborted, status updated to abort, TransactionId is 3
Line Operation w2 (Y);
Action Taken: transaction already aborted, status updated to abort, TransactionId is 2
Line Operation e2;
Action Taken: Transaction already aborted, TransactionId state is: abort, TransactionId is 2
Line Operation r3 (X);
Action Taken: transaction already aborted, status updated to abort, TransactionId is 3
Line Operation w3 (X);
Action Taken: transaction already aborted, status updated to abort, TransactionId is 3
Line Operation e3;
Action Taken: Transaction already aborted, TransactionId state is: abort, TransactionId is 3
Output
Line Operation b1;
Action Taken: Add transaction to transaction table, Added TransactionId is 1
Line Operation r1 (Y);
Action Taken: Add dataitem entry into lock table, Lock Status updated to 'Read Lock', Added dataitem is: Y, Added dataitem to transaction table in t_dataitem['Y'], TransactionId: 1
Line Operation w1 (Y);
Action Taken: Updating 'Read Lock' to 'Write Lock', , Modified dataitem is: Y, TransactionId: 1
Line Operation r1 (Z);
Action Taken: Add dataitem entry into lock table, Lock Status updated to 'Read Lock', Added dataitem is: Z, Added dataitem to transaction table in t_dataitem['Y', 'Z'], TransactionId: 1
Line Operation b2;
Action Taken: Add transaction to transaction table, Added TransactionId is 2
Line Operation r2 (Y);
Action Taken: Aborting Transaction , Ignore subsequent operations, TransactionId: 2
Line Operation b3;
Action Taken: Add transaction to transaction table, Added TransactionId is 3
Line Operation r3 (Z);
Action Taken: Added 'Read Lock' for the transactions for dataitem: Z, TransactionId: 3
Line Operation w1 (Z);
Action Taken: Transaction wants to Write datitem but has , Multiple Transaction with 'Read Lock'. DataItem: Z, TransactionId: 1
Line Operation w1 (Z);
Action Taken: Transaction gets Blocked, and its get added in Waiting Operations list as: [{'operation': 'w', 'dataitem': 'Z'}], TransactionId: 1
Line Operation w2 (Y);
Action Taken: transaction already aborted, status updated to abort, TransactionId is 2
Line Operation r2 (X);
Action Taken: transaction already aborted, status updated to abort, TransactionId is 2
Line Operation e1;
Action Taken: Transaction already blocked, e1 is added to waiting operations list, Waiting Operations list[{'operation': 'w', 'dataitem': 'Z'}, {'operation': 'e', 'dataitem': 'N.A.'}], TransactionId is 1
Line Operation e3;
Action Taken: End transaction, status updated to committed, TransactionId is 3, Unlock and release dataitems: ['Z']
e1 Action Taken: Transaction gets committed, Unlock and release dataitems: ['Y', 'Z']
Line Operation w2 (X);
Action Taken: transaction already aborted, status updated to abort, TransactionId is 2
Line Operation e2;
Action Taken: Transaction already aborted, TransactionId state is: abort, TransactionId is 2
Output
Line Operation b1;
Action Taken: Add transaction to transaction table, Added TransactionId is 1
Line Operation r1 (Y);
Action Taken: Add dataitem entry into lock table, Lock Status updated to 'Read Lock', Added dataitem is: Y, Added dataitem to transaction table in t_dataitem['Y'], TransactionId: 1
Line Operation w1 (Y);
Action Taken: Updating 'Read Lock' to 'Write Lock', , Modified dataitem is: Y, TransactionId: 1
Line Operation r1 (Z);
Action Taken: Add dataitem entry into lock table, Lock Status updated to 'Read Lock', Added dataitem is: Z, Added dataitem to transaction table in t_dataitem['Y', 'Z'], TransactionId: 1
Line Operation b2;
Action Taken: Add transaction to transaction table, Added TransactionId is 2
Line Operation r2 (Y);
Action Taken: Aborting Transaction , Ignore subsequent operations, TransactionId: 2
Line Operation b3;
Action Taken: Add transaction to transaction table, Added TransactionId is 3
Line Operation r3 (Z);
Action Taken: Added 'Read Lock' for the transactions for dataitem: Z, TransactionId: 3
Line Operation w1 (Z);
Action Taken: Transaction wants to Write datitem but has , Multiple Transaction with 'Read Lock'. DataItem: Z, TransactionId: 1
Line Operation w1 (Z);
Action Taken: Transaction gets Blocked, and its get added in Waiting Operations list as: [{'operation': 'w', 'dataitem': 'Z'}], TransactionId: 1
Line Operation w2 (Y);
Action Taken: transaction already aborted, status updated to abort, TransactionId is 2
Line Operation r2 (X);
Action Taken: transaction already aborted, status updated to abort, TransactionId is 2
Line Operation e1;
Action Taken: Transaction already blocked, e1 is added to waiting operations list, Waiting Operations list[{'operation': 'w', 'dataitem': 'Z'}, {'operation': 'e', 'dataitem': 'N.A.'}], TransactionId is 1
Line Operation w3 (Z);
Action Taken: Transaction wants to Write datitem but has , Multiple Transaction with 'Read Lock'. DataItem: Z, TransactionId: 3
Line Operation w3 (Z);
Action Taken: Aborting Transaction , Ignore subsequent operations, TransactionId: 3
e1 Action Taken: Transaction gets committed, Unlock and release dataitems: ['Y', 'Z']
Line Operation e3;
Action Taken: Transaction already aborted, TransactionId state is: abort, TransactionId is 3
Line Operation w2 (X);
Action Taken: transaction already aborted, status updated to abort, TransactionId is 2
Line Operation e2;
Action Taken: Transaction already aborted, TransactionId state is: abort, TransactionId is 2