AIncorrect Answer

To draw a presedence graph, you first draw three circles, one for each transaction. Next, you go through the schedule, drawing a line from Transaction A to Transaction B whenever;

  • B reads an attribute which A has written to at a previous time
  • B write an attribute which A has written to at a previous time
  • B writes an attribute which A has read from at a previous time

The connection from Transaction 2 to 1 involving B, and from 3 to 1 involving B do not fall into any of these three categories.

close

BIncorrect Answer

To draw a presedence graph, you first draw three circles, one for each transaction. Next, you go through the schedule, drawing a line from Transaction A to Transaction B whenever;

  • B reads an attribute which A has written to at a previous time
  • B write an attribute which A has written to at a previous time
  • B writes an attribute which A has read from at a previous time

The graph shown has something missing.

close

CIncorrect Answer

To draw a presedence graph, you first draw three circles, one for each transaction. Next, you go through the schedule, drawing a line from Transaction A to Transaction B whenever;

  • B reads an attribute which A has written to at a previous time
  • B write an attribute which A has written to at a previous time
  • B writes an attribute which A has read from at a previous time

All the connections in this graph point the wrong way...

close

DIncorrect Answer

To draw a presedence graph, you first draw three circles, one for each transaction. Next, you go through the schedule, drawing a line from Transaction A to Transaction B whenever;

  • B reads an attribute which A has written to at a previous time
  • B write an attribute which A has written to at a previous time
  • B writes an attribute which A has read from at a previous time

The connection from Transaction 2 to 1 involving B, and from 3 to 1 involving B do not fall into any of these three categories. In addition, the remaining connections in this graph involve the correct attributes and transactions but point the wrong way...

close

ECorrect Answer

To draw a presedence graph, you first draw three circles, one for each transaction. Next, you go through the schedule, drawing a line from Transaction A to Transaction B whenever;

  • B reads an attribute which A has written to at a previous time
  • B write an attribute which A has written to at a previous time
  • B writes an attribute which A has read from at a previous time

Well done.

close

A B C D E TELL ME NEXT INDEX
 
 

Given the following transaction schedule:

timeTRANSACTION 1 TRANSACTION 2 TRANSACTION 3
t1 read(A)
t2 read(B) read(B)
t3 read(B)
t4 write(C)
t5 write(B)
t6 read(A)
t7 write(A)
t8 write(A)
t9 write(C)
Which of the following precedence graphs depicts the above scerario?
  1. Precedence graph 1
  2. Precedence graph 2
  3. Precedence graph 3
  4. Precedence graph 4
  5. None of the above.