The advantage in loading on demand is that

Info icon This preview shows pages 2–4. Sign up to view the full content.

View Full Document Right Arrow Icon
The advantage in loading on demand is that transaction processing can start rightaway; however transactions may see long and unpre- dictable delays in disk access until the entire database is loaded into memory. 26.3 Is a high-performance transaction system necessarily a real-time system? Why or why not? Answer: A high-performance system is not necessarily a real-time sys- tem. In a high performance system, the main aim is to execute each trans- action as quickly as possible, by having more resources and better uti- lization. Thus average speed and response time are the main things to be optimized. In a real-time system, speed is not the central issue. Here each transaction has a deadline, and taking care that it finishes within the deadline or takes as little extra time as possible, is the critical issue. 26.4 Explain why it may be impractical to require serializability for long- duration transactions. Answer: In the presence of long-duration transactions, trying to ensure serializability has several drawbacks:- a. With a waiting scheme for concurrency control, long-duration trans- actions will force long waiting times. This means that response time will be high, concurrency will be low, so throughput will suffer. The probability of deadlocks is also increased. b. With a time-stamp based scheme, a lot of work done by a long- running transaction will be wasted if it has to abort. c. Long duration transactions are usually interactive in nature, and it is very difficult to enforce serializability with interactiveness. Thus the serializability requirement is impractical. Some other notion of database consistency has to be used in order to support long duration transactions. 26.5 Consider a multithreaded process that delivers messages from a durable queue of persistent messages. Different threads may run concurrently, attempting to deliver different messages. In case of a delivery failure, the
Image of page 2

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Exercises 3 message must be restored in the queue. Model the actions that each thread
Image of page 3
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern