subject

Consider two tables R(A, B) and S(C). Below are pairs of transactions. For each pair, decide whether it is possible for nonserializable behavior to be exhibited when executing the transactions concurrently, while respecting their specified isolation levels. Assume individual statements are executed atomically, and each transaction executes to completion.

(a) Transaction 1:

Set Transaction Isolation Level Read Committed;

Select count(*) From R;

Select count(*) From S;

Commit;

Transaction 2:

Set Transaction Isolation Level Serializable;

Insert Into R Values (1,2);

Insert Into S Values (3);

Commit;

(b) Transaction 1:

Set Transaction Isolation Level Read Committed;

Select count(*) From R;

Select count(*) From S;

Commit;

Transaction 2:

Set Transaction Isolation Level Serializable;

Insert Into R Values (1,2);

Insert Into R Values (3,4);

Commit;

(c) Transaction 1:

Set Transaction Isolation Level Repeatable Read;

Select count(*) From R;

Select count(*) From S;

Select count(*) From R;

Commit;

Transaction 2:

Set Transaction Isolation Level Serializable;

Insert Into R Values (1,2);

Commit;

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 04:00
Another name for addicting games.com
Answers: 1
question
Computers and Technology, 23.06.2019 20:00
Match the file formats with the types of multimedia they can store
Answers: 2
question
Computers and Technology, 24.06.2019 15:30
Emma is using an artificial intelligence system, which contains information on botany, to identify a type of plant from an image. what type of ai is emma using?
Answers: 1
question
Computers and Technology, 25.06.2019 06:30
How are slides deleted from a presentation?
Answers: 1
You know the right answer?
Consider two tables R(A, B) and S(C). Below are pairs of transactions. For each pair, decide whether...
Questions
question
English, 06.02.2021 01:00
question
Mathematics, 06.02.2021 01:00
question
Mathematics, 06.02.2021 01:00
question
Mathematics, 06.02.2021 01:00
question
Mathematics, 06.02.2021 01:00
question
English, 06.02.2021 01:00
Questions on the website: 13722363