Skip to content

English practice

Reading: Multiple Choice, Multiple Answers · Question 922

PTE · Reading · hard

Read the text and answer the question by selecting all the correct responses. More than one response is correct.

In multi-user database management systems, maintaining transactional consistency when concurrent transactions access the same data elements presents a classic architectural challenge. Computer scientists have long debated the relative merits of pessimistic concurrency control versus optimistic concurrency control. Pessimistic concurrency control operates under the presumption that data conflicts are frequent. It employs locking mechanisms, such as shared read locks and exclusive write locks, to block concurrent operations from accessing a data record until the holding transaction has completed its execution. While this preventive locking ensures strict serializability and prevents cascaded rollbacks, it introduces significant computational overhead from lock maintenance, creates system latency as processes wait in queues, and carries the perpetual risk of deadlocks that require algorithmic detection and resolution. In contrast, optimistic concurrency control presumes that transaction conflicts are rare in typical read-heavy enterprise workloads. It permits transactions to read and modify local copies of data records without acquiring any locks during the execution phase. Only at the final validation phase, just prior to committing, does the system verify whether any concurrent process altered the underlying records. If a conflict is detected, the offending transaction is simply aborted and restarted from scratch. Advocates of optimistic protocols highlight their superior throughput in environments characterized by low contention and brief transaction durations. However, opponents emphasize that when contention spikes or workloads involve lengthy analytical transactions, high abort rates waste central processing resources and degrade overall system responsiveness.

Which of the following can be inferred from the passage regarding pessimistic and optimistic concurrency protocols?

  • Pessimistic concurrency control prevents transaction deadlocks by eliminating the need for process queues.
  • Optimistic protocols verify data consistency before any local data modifications are permitted during execution.
  • Workloads consisting primarily of write operations are optimal conditions for deploying optimistic concurrency control.
  • A major limitation of the pessimistic approach is the processing cost required to manage locks and resolve stalled transactions.
  • Pessimistic models typically suffer higher abort and restart frequencies than optimistic models during peak activity.
  • Optimistic concurrency control can lead to inefficient resource usage when multiple transactions regularly compete for identical data.