Object-Oriented Database Systems Issues
17 Questions
0 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

What is the primary purpose of the lock table in a database system?

  • To manage concurrent access to shared memory (correct)
  • To store query plans and execution results
  • To implement atomic instructions for mutual exclusion
  • To cache frequently accessed data
  • In a database system, which of the following is a strategy used to avoid the overhead of interprocess communication for lock requests?

  • Caching query plans for faster execution
  • Having each database process operate directly on the lock table (correct)
  • Implementing deadlock detection at the lock manager process
  • Using operating system semaphores
  • What is the purpose of caching query plans in a database system?

  • To implement deadlock detection
  • To improve the performance of frequently executed queries (correct)
  • To reduce the overhead of interprocess communication
  • To manage concurrent access to shared memory
  • What is a characteristic of Data Servers in high-speed LANs?

    <p>They require full back-end functionality at the clients</p> Signup and view all the answers

    Which of the following is a benefit of using Data Servers in high-speed LANs?

    <p>Faster execution of compute-intensive tasks</p> Signup and view all the answers

    What is the primary difference between page-shipping and item-shipping architectures?

    <p>Page-shipping ships entire pages of data, while item-shipping ships individual items</p> Signup and view all the answers

    What is the condition for granting a lock request in a replicated data scenario?

    <p>When a lock request is sent to more than half of the n sites in which Q is stored.</p> Signup and view all the answers

    Which type of lock request requires a lock manager at all sites containing a replica of Q?

    <p>Exclusive locks</p> Signup and view all the answers

    What is the advantage of the majority protocol in handling writes in the presence of site failure?

    <p>It can be used even when some sites are unavailable.</p> Signup and view all the answers

    What is the drawback of the majority protocol in terms of messages required?

    <p>It requires 2(n/2 + 1) messages for handling lock requests, and (n/2 + 1) messages for handling unlock requests.</p> Signup and view all the answers

    What is the potential risk in the majority protocol even with a single item?

    <p>Deadlock</p> Signup and view all the answers

    How does the biased protocol handle requests for shared locks?

    <p>It requests a lock on Q from the lock manager at one site containing a replica of Q.</p> Signup and view all the answers

    What is the primary advantage of page-shipping over item-shipping?

    <p>Prefetching related items along with the requested item</p> Signup and view all the answers

    What is the main drawback of granting locks on prefetched items in page-shipping?

    <p>All of the above</p> Signup and view all the answers

    What is the benefit of lock caching?

    <p>Reducing lock overhead</p> Signup and view all the answers

    When can locks on a prefetched item be returned to the server?

    <p>When the prefetched item has not been used</p> Signup and view all the answers

    What happens when there are lock conflicts on a page?

    <p>Locks on the page are deescalated to locks on items</p> Signup and view all the answers

    More Like This

    Key Concepts in OOP, .NET, Oracle DB, Git Quiz
    12 questions
    Object-Oriented Databases Fundamentals
    12 questions
    BD del apunte, preguntas
    30 questions
    Use Quizgecko on...
    Browser
    Browser