Professional Documents
Culture Documents
Quiz#8 ITM6505
Quiz#8 ITM6505
This quiz covers the remaining of Topic 9 and Topic 10. They are
about scheduling and concurrency control of transactions. If you write
programs in multi users environment, these are the must know units.
These topics are not easy ones and are very interesting. Please do not
underestimate them and study them as soon as possible. You really need to
consult the Silberschatz, Korth and Sudarshan text book and the video
lectures, of course.
1. Serial schedules.
Answer:
It is a schedule in which transactions are aligned in such a way that one
transaction is executed first. When the first transaction completes its cycle, then the
next transaction is executed in a serial manner as following sample.
Let T1 transfer $50 from A to B, and T2 transfer 10% of the balance
from A to B.
- A serial schedule in which T1 is followed by T2 :
- A serial schedule where T2 is followed by T1
The sequence that first & third conditions will consider to check first then the
second condition will follow to check as the last condition.
6. Cascadeless schedules.
Answer:
A Cascadeless schedule is one where, for each pair of transactions Ti and
Tj such that Tj reads a data item previously written by Ti , the commit operation of
Ti appears before the read operation of Tj.