hamburger menu
All Coursesall course arrow
adda247
reward-icon
adda247
    arrow
    arrow
    arrow
    Based on the table provided, which of the following is the only correct statement regarding shared (S-lock) and exclusive (X-lock) locks?
    Question



    Based on the table provided, which of the following is the only correct statement regarding shared (S-lock) and exclusive (X-lock) locks?

    A.

    Transactions T1, T2, and T4 can hold S-locks on the resource simultaneously.

    B.

    Transaction T3 can acquire an X-lock even if T1 holds an S-lock on the same resource.

    C.

    Transaction T4 can proceed with its read operation while T3 holds an X-lock on the resource.

    D.

    An X-lock and an S-lock can be held on the same resource by different transactions.

    E.

    Shared and exclusive locks are interchangeable depending on the operation.

    Correct option is A

    Shared Lock (S-lock): Allows multiple transactions to read the resource at the same time, as it does not involve data modification.
    · Exclusive Lock (X-lock): Prohibits other transactions from acquiring either an S-lock or another X-lock until it is released.
    From the table:
    · T1, T2, and T4 are read operations using S-locks, and they can share the resource simultaneously.
    · However, T3, holding an X-lock for writing, blocks all other operations until it releases the lock.
    Important Key Points:
    1. S-locks are non-conflicting, allowing multiple transactions to read data simultaneously.
    2. X-locks ensure data integrity by blocking all other operations (reads or writes).
    3. Transactions with X-locks must wait for any existing S-locks to be released before acquiring the lock.
    Knowledge Booster:
    · Option (b): Incorrect, as X-locks cannot be acquired if S-locks already exist.
    · Option (c): Incorrect, as T4 cannot proceed while T3 holds an X-lock.
    · Option (d): Incorrect, as S-lock and X-lock cannot coexist on the same resource.
    · Option (e): Incorrect, as shared and exclusive locks have distinct purposes and are not interchangeable.

    Free Tests

    Free
    Must Attempt
    Video Solutions

    RBI Assistant Pre 2026 Full Mock Test -01

    languageIcon English
    • pdpQsnIcon100 Questions
    • pdpsheetsIcon100 Marks
    • timerIcon60 Mins
    languageIcon English
    Free
    Must Attempt
    Video Solutions

    RBI Asst Prelims 2026 : Reasoning Section Test 01

    languageIcon English
    • pdpQsnIcon35 Questions
    • pdpsheetsIcon35 Marks
    • timerIcon20 Mins
    languageIcon English
    Free
    Must Attempt
    Video Solutions

    RBI Asst Prelims 2026 : Quant Section Test 01

    languageIcon English
    • pdpQsnIcon35 Questions
    • pdpsheetsIcon35 Marks
    • timerIcon20 Mins
    languageIcon English
    test-prime-package

    Access ‘IBPS SO IT Officer’ Mock Tests with

    • 60000+ Mocks and Previous Year Papers
    • Unlimited Re-Attempts
    • Personalised Report Card
    • 500% Refund on Final Selection
    • Largest Community
    students-icon
    364k+ students have already unlocked exclusive benefits with Test Prime!
    Our Plans
    Monthsup-arrow