Schedule Flashcards

1
Q

What is schedule?
1.Serial Schedule
2.Non-Serial Schedule
3.Eqivalent Schedule

A

process of grouping transaction into one and then executing then in a order.

A schedule is the chronological (sequential) order in which instructions are executed in a
system.

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

Why is schedule required?

A

A schedule is required in a database because some transaction occur in parallel, they may affect the result of transaction.

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

Serial Schedule.

A

A schedule in which ongoing transaction is first completed and then other transaction is started.

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

Non-Serial Schedule

A

2nd Transaction starts before 1st one ends

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

Equivalent Schedule.

A

If two schedules produce the same result after execution.

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

Problems due to concurrent execution.

A

1.Dirty Read
2.Unrepeatable Read problem
3.phantom read problem
4.Lost update problem

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

Dirty Read Problem.

A

If a transaction starts and reads A and does A=A-50 then write A. and then another transaction starts with taking this A value but due to some reason the first transaction fails. So the value of A picked in 2nd Transaction will be dirty read.

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

Unrepeatable read problem

A

reading the same variable (A)
more than one time and getting
different values due to parallel going to transaction.

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

Phantom Read problem

A

Reading a variable which is deleted in parent transaction.

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