Question

Transactions. Consider an ATM system. We have 2 transactions. T1: withdraw $50 and T2: withdraw $100....

  1. Transactions. Consider an ATM system.

We have 2 transactions. T1: withdraw $50 and T2: withdraw $100. We consider concurrent executions of the transactions. Which schedule(s) is (are) serializable? Explain why.

  1. T2 reads the balance.

T1 reads the balance.

T2 withdraw $100.

T1 withdraw $50.

  1. T2 reads the balance.

T2 withdraw $100.

T1 reads the balance.

T1 withdraw $50.

  1. T2 reads the balance.

T1 reads the balance.

T2 withdraw $100.

T1 withdraw $50.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

to check for the serializability one must draw a precedense graph of transaction and check if there is any loop in graph the it is not serializable .

the graph contain vertex as no of different transaction and edges are drawn if any conflicts are found .

various conflicts are :

1] read -write

2] write- read

3] write-write

** TEXT GIVEN IN QUESTION IS CONVERTED INTO TABLE:

so ,a) TT 2. RlA) RA wla wla Narions Read-waite Loik-wile toile Red Preadins praph teridiyath in 5ince Qptot No Scannedwith CS

wlA RlA wlA) Ap dr prcedtapk oreuda Since there No 5o it s

Rla RA tolt) atcedenc npacede 5ins there d Jt Not

for drawing vertex stand in one coloumn and find the conflict in another coloumn and if found draw a vertex. dont found conflict in same coloumn.

Add a comment
Know the answer?
Add Answer to:
Transactions. Consider an ATM system. We have 2 transactions. T1: withdraw $50 and T2: withdraw $100....
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT