Preview

Final Exam DB

Good Essays
Open Document
Open Document
2715 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Final Exam DB
Final Exam CSE232, Spring 97, Solutions
Name:
Time: 2hrs 40min. Total points are 148.
A.

Serializability I (8)

Consider the following schedule S, consisting of transactions T1, T2 and T3
T1
T2
T3
w(A) r(A) w(B) w(B) w(B) w(A) r(B) r(B) • Give the precedence graph for S
• Is S conflict serializable ? Justify your answer.
• Is S view serializable ? Justify your answer.

.Solution

T1

T3

T1

T2



Precedence Graph

S is not conflict serializable because there is a circle T1- T3- T1
S is view serializable because there is the following serial schedule S’ where all reads of S and S’ read the same value and all writes write the same value.
T1
T2
T3
w(A) w(B) r(A) w(A) r(B) w(B) w(B) r(B) •

B.

Serializability II (15)

Two transactions are not interleaved in a schedule S if every operation of one transaction precedes every operation of the other. (Note, the schedule may not be serial.) Give an example of a serializable schedule S that has all of the following properties:
• transactions T1 and T2 are not interleaved in S
• T1 starts before T2 in S
• in any serial schedule equivalent to S, T2 precedes T1
Hint: The schedule may include more than two transactions.

.Solution
Consider the following schedule S
T1
T2
T3
w(A) r(A) r(B) w(B) S is serializable (acyclic precedence graph), T1 and T2 are not interleaved in S and T1 starts before
T2. In every serial schedule S’ equivalent to S T3 precedes T1 because it is impossible to bring r(A) ahead of w(A). Similarly, T2 precedes T3 because it is impossible to bring w(B) ahead of r(B).
Hence, in every serial schedule T2 precedes T1.

C.

Serializability III (15)

Consider two non-identical schedules S and S’ consisting of transactions T1,…, Tn where n>1. For each of the following set of conditions decide whether S and S’
• have to be equivalent,
• have to be nonequivalent,
• is impossible to decide whether they are equivalent or not

You May Also Find These Documents Helpful

  • Powerful Essays

    Nt1310 Unit 1

    • 4209 Words
    • 17 Pages

    If two steps are indented at the same level, the uppermost statement is executed first. ans)All of the above…

    • 4209 Words
    • 17 Pages
    Powerful Essays
  • Good Essays

    c.Reverse Time Order- outcome actually come before the exposure (opposite of hypothesis); the outcome is really the exposure and the exposure is really the outcome…

    • 2113 Words
    • 14 Pages
    Good Essays
  • Good Essays

    Nt1310 Unit 3 Os

    • 1341 Words
    • 6 Pages

    +• Synchronization: With multiple active processes having potential access to shared address spaces or shared I/O resources, care must be taken to provide effective synchronization. Synchronization is a facility that enforces mutual exclusion and event…

    • 1341 Words
    • 6 Pages
    Good Essays
  • Powerful Essays

    Bsbwor501 Final Exam

    • 794 Words
    • 4 Pages

    The degree of structure in a questionnaire is the degree of standardization imposed on it. In a highly structure questionnaire to be asked and the reponses permitted by the subjects are completely predetermined . in a questionnaire with less structure , the response categories are not provided ; sometimes even the questions can vary.…

    • 794 Words
    • 4 Pages
    Powerful Essays
  • Satisfactory Essays

    Littlefield Technologies

    • 328 Words
    • 2 Pages

    was set to FIFO, but we decided that by changing the scheduling rule to priority step 2, we could process all the incoming kits, giving…

    • 328 Words
    • 2 Pages
    Satisfactory Essays
  • Better Essays

    Hi-Ho Yo-Yo, Inc

    • 1077 Words
    • 5 Pages

    This technique of scheduling can be used with the reference of time either forward or backward. when we use forward scheduling, we start with the date from which job order starts. it calculates the period of time, from the day on which first operation was performed to all the subsequent operation till the completion of the work. It determines the earliest time on which the work can be completed.…

    • 1077 Words
    • 5 Pages
    Better Essays
  • Good Essays

    Kristens cookie company

    • 1363 Words
    • 5 Pages

    A problem of idle time arises when more than one order is to be fulfilled, now if 2 simultaneous orders come, then I will have an idle time of 2 minutes and the roommate will have an idle time of 6 minutes.…

    • 1363 Words
    • 5 Pages
    Good Essays
  • Good Essays

    The Orientation Problem

    • 667 Words
    • 3 Pages

    b) The new letter carriers has been shifted from route to route because of lack of written materials about route's particular order and the time which to took.…

    • 667 Words
    • 3 Pages
    Good Essays
  • Better Essays

    Editing Styles

    • 1301 Words
    • 6 Pages

    a) The arrival of a train – several different sequences but not much cutting within a sequence…

    • 1301 Words
    • 6 Pages
    Better Essays
  • Better Essays

    Lock Free Data Structures

    • 3562 Words
    • 16 Pages

    couldn’t stand a chance against lock-free data structures, which are all the rage in the multithreaded…

    • 3562 Words
    • 16 Pages
    Better Essays
  • Satisfactory Essays

    Data Replication

    • 2297 Words
    • 10 Pages

     Introduction  Distributed DBMS Architecture  Distributed Database Design  Distributed Query Processing  Distributed Transaction Management  Data Replication…

    • 2297 Words
    • 10 Pages
    Satisfactory Essays
  • Better Essays

    • Schedules are actually non existent in this system as no definite data is available on the product.…

    • 1262 Words
    • 6 Pages
    Better Essays
  • Powerful Essays

    Flip Flops

    • 1512 Words
    • 34 Pages

    CS1104 – Computer Organization http://www.comp.nus.edu.sg/~cs1104 Aaron Tan Tuck Choy School of Computing National University of Singapore Lecture 11: Sequential Logic Latches & Flip-flops  Introduction  Memory Elements  Pulse-Triggered Latch  S-R Latch  Gated S-R Latch  Gated D Latch  Edge-Triggered Flip-flops     S-R Flip-flop D Flip-flop J-K Flip-flop T Flip-flop…

    • 1512 Words
    • 34 Pages
    Powerful Essays
  • Satisfactory Essays

    * 1. Lesson 2 Basic Steps 2/4 Time Signature 3/4 Time Signature Chapter I Introduction Lesson Objectives Exercise 1.2…

    • 1430 Words
    • 6 Pages
    Satisfactory Essays
  • Good Essays

    Scheduling

    • 338 Words
    • 2 Pages

    Scheduling refers to the pattern of advertising timing, represented as plots on a yearly flowchart. These plots indicate the pattern of scheduled times advertising must appear to coincide with favorable selling periods. The classic scheduling models are Continuity, Flighting and Pulsing.…

    • 338 Words
    • 2 Pages
    Good Essays

Related Topics