Zybook 4-2 Flashcards

(27 cards)

1
Q

X Y Z
9 4 0

After Schedule executes, what is the value of Z?

A

3

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

X Y Z
9 4 0

After Equivalent Schedule executes, what is the value of Z?

A

3

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

X Y Z
9 4 0

After Conflicting Schedule executes, what is the value of Z?

A

2

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

X Y Z
9 4 0

The __________ Schedule has the same result as Schedule.

A

Equivalent

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

X Y Z
9 4 0

The ___________ Schedule has a different result than Schedule.

A

Conflicting

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

schedule in which transactions are executed one at a time. ————- have no concurrent transactions.

A

serial schedule

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

can be transformed into a serial schedule by switching the relative order of reads in different transactions

A

serializable schedule

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

A SERIALIZABLE transaction can run concurrently with a READ COMMITTED transaction.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

When two READ UNCOMMITTED transactions run concurrently, the result may vary.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Transactions A and B are both SERIALIZABLE, and A always starts before B. The result may vary.

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Transaction A writes data and rolls back before transaction B reads the data.

A

Strict

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Transaction A writes data. Transaction B reads the data and commits before transaction A commits.

A

Nonrecoverable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Transaction A writes data. Transaction B reads the data. Transaction A rolls back before B commits.

A

Cascading

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Several transactions can hold concurrent shared locks on the same row.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Several transactions can hold concurrent exclusive locks on the same row.

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

One transaction can hold an exclusive lock while other transactions hold shared locks on the same row.

17
Q

Several transactions can hold concurrent exclusive locks on the same block, as long as the transactions access different rows in the block.

18
Q

When a transaction takes a shared lock on a block, other transactions may be delayed.

19
Q

Which two-phase locking technique results in the longest wait times for concurrent transactions?

20
Q

Which two-phase locking technique has, in effect, just one phase?

21
Q

A database uses basic two-phase locking. Transaction A takes an exclusive lock on X. Transaction B requests a shared lock on X. When is the shared lock granted?

A

During the contract phase of A

22
Q

A database uses strict two-phase locking. Transaction A takes an exclusive lock on X. Transaction B requests a shared lock on X. When is the shared lock granted?

A

After A commits or rolls back

23
Q

Refer to the above animation. How many transactions must roll back to break the deadlock?

24
Q

Whenever deadlock occurs, a cycle of dependent transactions always exists.

25
Deadlock can occur in a serializable schedule.
False
26
A transaction with isolation level SERIALIZABLE can participate in a deadlock.
True
27
Which deadlock management technique delays the fewest possible transactions?