Question

Would you please look at this question and post the detailed and reasoned answers please? The sooner is better. Thanks

5.2) (5 Points) Following is an example of banking transaction. In each case of (a), (b), (c) transaction to hits a failure.

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

Ans:

The following rules would needed to be followed so that the lost transaction may be recovered either through redo or undo actions which may be alternatively or combinely used to revert the failure and transfer the system to a consistent state once more. For the above process following steps should be followed:

Undo - when a log record Ti is undoed the log record <Ti, X, V1, V2> writes the old value of V1 to X. undo(Ti ) restores the value of all data items updated by Ti to their old values, going backwards from the last log record for Ti. and each time the above undo operation takes place it is mentioned (added) to the log records denoted by transaction:

<Ti, X, V>. and is followed by <Ti abort> as soon as the transaction is complete.

Redo - while  Redo of a log record writes the new value V2 to X. redo(Ti ) sets the value of all data items updated by Ti to the new values, going forward from the first log record for Ti. But is not followed by any logging.

When to use which?

When recovering after a failure:

– Transaction Ti needs to be undone if the log

• contains the record <Ti start>,

• but does not contain either the record <Ti commit> or <Ti abort> .

– While Transaction Ti needs to be redone if the log

• contains the records <Ti start>,

• and contains the record or <Ti commit> or <Ti abort> .

So, on using the above operations we have:

a). Operations to be followed :redo (T0 ) and redo (T1 ): (Since both T0 and T1 were already commited)

Since the redo phase is not added in the log therefore the log in scenario a) would just be redoed:

<T0 start>
<T0, A, 800, 450>
<T0, B, 765, 980>
<T0, commit>
<T1 start>
<T1, C, 1700, 1600>
<T1 commit>

Values of : A and B are set to 450 and 980 respectively. Then C is set to 1600.

b). Operations which would be followed : redo (T0 ) and undo (T1 ):

Log records <T1, C, 1700>, <T1 abort> are written out.

<T0 start>
<T0, A, 800, 450>
<T0, B, 765, 980>
<T0, commit>
<T1 start>
<T1, C, 1700, 1600>
<T1, C, 1700>
<T1 abort>

Values of : A and B are set to 4500 and 980, and C is restored to 1700.

c). Operations which would be followed : undo (T0 ):

and log records <T0, B, 765>, <T0, A, 800> and <T0 abort> are written out

<T0 start>
<T0, A, 800, 450>
<T0, B, 765, 980>
<T0, B, 765>
<T0, A, 800>
<T0 abort>

Values of : B is restored to 765 and A to 800.

( PLEASE DO LIKE AND UPVOTE IF THIS WAS HELPFUL!)

( THANK YOU SO MUCH IN ADVANCE!)

Add a comment
Know the answer?
Add Answer to:
Would you please look at this question and post the detailed and reasoned answers please? The...
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
  • Question 1: Assume that initially A-5 and B:10. The following are 3 transactions on A and...

    Question 1: Assume that initially A-5 and B:10. The following are 3 transactions on A and B (→ denotes assignmen): TI : A+B → A: A+B → B T2: A+B → B: A+B → A * For each transaction, a) add necessary read- and write-actions to the computation; b) show the undo/redo-log records for each of the transactions. Question 2: The following is a sequence of undo/redo-log records generated by two transactions, T and U: COMMIT U>:<T,E,50.51: <COMMIT T> Suppose...

  • Please answer the exercise 9.2. I have included the spectrums. Please review attached images and table to help answer questions. Match the compounds to their corresponding spectrums. Thank you very mu...

    Please answer the exercise 9.2. I have included the spectrums. Please review attached images and table to help answer questions. Match the compounds to their corresponding spectrums. Thank you very much! Match each spectrum in exercise 9.2 of your text (pages 449-450) to a compound on the right. Remember that you can use Table 9.2 on page 439 to solve these puzzles along with some of the reading. cycloheptene H2N 4-methylaniline CI p-dichlorobenzene ethynylbenzene 3-methylphenol odobenzene Choose... Exercise 9.2 spectrum...

  • Please provide answers and detailed explanations Linear Regression & Correlation Coefficient Practice Would you consider the...

    Please provide answers and detailed explanations Linear Regression & Correlation Coefficient Practice Would you consider the data to be accurate, precise or both? Justify. 1. 10 T 2. The table below shows the percentage of females in the U.S. labor force at various times throughout history Years after 1900 | 50 Percentage | 60 T70- T80-T90 8.1 42.5 45.3 100 52.0 Enter the data into your calculator or excel and give the equation. Round slope & y-intercept to 2 decimal...

  • answers for 7 and 8 please if you can do 9 and 10 that would be...

    answers for 7 and 8 please if you can do 9 and 10 that would be perfect too, please label each answer for the question number Use the following information for the Question Numbers 5 to 10. Mr. Mazin started a business in the month of March 2020. He has to prepare a financial statement at the end of the month for review of the operation of his business. The following transactions are given below. You are required to help...

  • Please answer the question in full if you know how to do it! Please allign the...

    Please answer the question in full if you know how to do it! Please allign the answers how the question is so it's not confusing for me to figure out where it goes! I will give thumbs up if the answers are correct! If you have trouble reading any of the images please let me know so that I can post another picture! Thank you с D E G H M San Jose Veterinary Hospital Worksheet December 31, 2024 Adjustments...

  • Please help me!! thank you! QUESTION 1 Step 1 You work for Thunderduck Custom Tables Inc....

    Please help me!! thank you! QUESTION 1 Step 1 You work for Thunderduck Custom Tables Inc. This is the first month of operations. The company designs and manufactures the customer. This month, you have been asked to develop and manufacture two new tables for customers. You will design and build the tables. This is a no nail, no screw, and no glue manufacturing (no indirect materials used). You will be keeping track of the costs incurred to manufacture the tables...

  • can you please mark the explanations while answering this practice problem? 1. 2. 3. etc Magness Delivery Service has completed closing entries and the accounting cycle for 2016. The busine...

    can you please mark the explanations while answering this practice problem? 1. 2. 3. etc Magness Delivery Service has completed closing entries and the accounting cycle for 2016. The business is now ready to record January 2017 transactions. Collected $1,000 cash from customer on account. 5 Purchased office supplies on account, $600. 12 Performed delivery services for a customer and received $2,000 cash. 15 Paid employee salary including the amount owed on December 31, $2,500. 18 Performed delivery services on...

  • Financial Accounting Review. Please answer all questions. BD O-12, 13EO-23,29 6 Prepare an adjusted trial balance...

    Financial Accounting Review. Please answer all questions. BD O-12, 13EO-23,29 6 Prepare an adjusted trial balance BE015-18 7 Prepare financial statements 8 | Journalize and post closing entries | -1E-41 9 Prepare a post-closing trial balance E 0-38 E 0-42 LO 1 -Analyze Business Transactions BE0-1 Presented below are three economic events. In each column, indicate whether the event increased (+), decreased (-), or had no effect (NE) on assets, liabilities, and stockholders' equity. (a) | Purchased supplies on account....

  • Please answer the following question. Preparing Adjusting Entries Jake Thomas began Thomas Refinishing Service on July...

    Please answer the following question. Preparing Adjusting Entries Jake Thomas began Thomas Refinishing Service on July 1, 2019. Selected accounts are shown below as of July 31, before any adjusting entries have been made. Unadjusted Account Balances Debit Credit Prepaid rent $5,700 Prepaid advertising 630 Supplies inventory 3,000 Performance obligation liability $600 Refinishing fees revenue 2,500 Support Using the following information, prepare the adjusting entries necessary on July 31 (a) using the financial statement effects template and (b) in journal...

  • i need requirement 4-7 please . just submitted the parts i already did . thank you...

    i need requirement 4-7 please . just submitted the parts i already did . thank you ! k Dividends Fuel Expense 0 Requirements Х reciation- O Bal he trial balance.) are an unadju s you prepare Miller Deliv Unadjusted Decembe 1. Record each transaction in the journal using the following chart of accounts. Explanations are not required. Cash Retained Earnings Accounts Receivable Dividends Office Supplies Income Summary Prepaid Insurance Service Revenue Truck Salaries Expense Accumulated Depreciation-Truck Depreciation Expense—Truck Accounts Payable...

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