已知事务 T1 的封锁序列为: LOCK S(A) … UNLOCK (A) … LOCK S(B) … LOCK X(C) … UNLOCK (C) … UNLOCK (B);事务 T2 的封锁序列为: LOCK S(A) … LOCK S(B) … LOCK X(C) … UNLOCK(B) … UNLOCK (A) … UNLOCK (C),则遵守两段封锁协议的事务是A.T1B.T2C.T1和T2D.T1和T2都没有

题目

已知事务 T1 的封锁序列为: LOCK S(A) … UNLOCK (A) … LOCK S(B) … LOCK X(C) … UNLOCK (C) … UNLOCK (B);事务 T2 的封锁序列为: LOCK S(A) … LOCK S(B) … LOCK X(C) … UNLOCK(B) … UNLOCK (A) … UNLOCK (C),则遵守两段封锁协议的事务是

A.T1

B.T2

C.T1和T2

D.T1和T2都没有


相似考题
更多“已知事务 T1 的封锁序列为: LOCK S(A) … UNLOCK (A) … LOCK S(B) … LOCK X(C) … UNLOCK (C) … UNLOCK (B);事务 T2 的封锁序列为: LOCK S(A) … LOCK S(B) … LOCK X(C) … UNLOCK(B) … UNLOCK (A) … UNLOCK (C),则遵守两段封锁协议的事务是”相关问题
  • 第1题:

    在数据库的并发控制中,事务T若要更新记录Q,必须先执行操作______。

    A.Lock_S(Q)

    B.Lock_X(Q)

    C.READ(Q)

    D.WRITE(Q)

    A.

    B.

    C.

    D.


    正确答案:B
    解析:数据库系统运行的基本工作单位是事务。从终端用户的角度看,事务是一个原子。
      在数据库的并发控制中,事务T若要更新记录Q,根据一级封锁协议,任何企图更新记录Q的事务必须先执行Lock_(Q)操作。

  • 第2题:

    当小区出现Inconfig状态时,可采用哪些方法来解决()

    A.任意更改一个参数

    B.Restart该小区

    C.等待1小时

    D.Lock/Unlock小区的O&M


    参考答案:A, C

  • 第3题:

    写出下列Application对象的集合属性和方法所表示的含义  1.Application_onEnd 2.Application_onStart 3.Lock 4.unLock
    1.Application_onEnd应用程序对象结束事件
    2.Application_onStart应用程序对象开始事件
    3.Lock加锁方法
    4.unLock解锁方法

  • 第4题:

    单击()将弹出一菜单,从中可以设置Premiere能够显示的最小时间单位。

    • A、Show/ Hide Audio Waveforms
    • B、Time Zoom Level
    • C、Lock/Unlock Track
    • D、Track Options Dialog

    正确答案:B

  • 第5题:

    按照PX协议规定,一个事务要更新数据对象Q,必须先执行的操作是()

    • A、READ(Q)
    • B、WRITE(Q)
    • C、LOCK S(Q)
    • D、LOCK X(Q)

    正确答案:D

  • 第6题:

    关于图形的Group(组合)与Lock(锁定)操作,下列描述不正确的是()

    • A、多个图形一旦成组,要选择其中一个图形,必须先执行Ungroup(解组)命令才能进行选择
    • B、Lock(锁定)命令只是固定图形的位置,并不影响对图形进行其它的操作,例如,改变填充色
    • C、锁定后的成组图形一旦执行UnLock(解锁)命令,成组图形也自动解组
    • D、对于成组的图形,通过选择工具(工具箱中的黑色箭头),单击其中的任何图形,都可选中整个群组

    正确答案:A,B,C

  • 第7题:

    当复位PCU时,我们可以用不同的指令,下列哪个指令不正确,会导致BSCreset()

    • A、reset_site pcu 
    • B、reset_site pcu 0 
    • C、lock 0 pcu 0 , unlock 0 pcu 0 
    • D、reset_device pcu

    正确答案:B

  • 第8题:

    User Scott has updated the salary of one of the employees in the EMPLOYEES table and has not committed the transaction. What are the two types of locks that this scenario would lead to?()

    • A、null lock on the row being updated
    • B、null lock on the table containing the row
    • C、ROW SHARE lock for the row being updated
    • D、ROW EXCLUSIVE lock for the row being updated
    • E、shared row-exclusive lock for the row being updated
    • F、a shareable table lock for the table containing the row
    • G、exclusive table-level lock for the table containing the row

    正确答案:D,F

  • 第9题:

    设定扭力值之前,需检查力矩扳手是在LOCK或UNLOCK状态。


    正确答案:正确

  • 第10题:

    多选题
    User Scott has updated the salary of one of the employees in the EMPLOYEES table and has not committed the transaction. What are the two types of locks that this scenario would lead to?()
    A

    null lock on the row being updated

    B

    null lock on the table containing the row

    C

    ROW SHARE lock for the row being updated

    D

    ROW EXCLUSIVE lock for the row being updated

    E

    shared row-exclusive lock for the row being updated

    F

    a shareable table lock for the table containing the row

    G

    exclusive table-level lock for the table containing the row


    正确答案: G,C
    解析: 暂无解析

  • 第11题:

    单选题
    One of the users in the PROD database, Adams, complains that his update on the table, TRANS, is taking an unusually long time to complete. You find that the table gets locked by another database user before Adams starts his transactions, and you are unable to contact the user holding the table lock. As Adams is updating some crucial rows in the table, he should get the highest priority. Which method would you use to overcome this problem?()
    A

    execute the command, ALTER SESSION KILL .., to kill the blocking session

    B

    execute the DBMS_SESSION.KILL_SESSION procedure to kill the blocking session

    C

    execute the command, ALTER SYSTEM KILL SESSION .., to kill the blocking session

    D

    execute the command, ALTER SESSION UNLOCK .., to release the lock for the blocking session

    E

    execute the command, ALTER SYSTEM UNLOCK SESSION .., to release the lock for the blocking session


    正确答案: B
    解析: 暂无解析

  • 第12题:

    问答题
    写出下列Application对象的集合属性和方法所表示的含义  1.Application_onEnd 2.Application_onStart 3.Lock 4.unLock

    正确答案: 1.Application_onEnd应用程序对象结束事件
    2.Application_onStart应用程序对象开始事件
    3.Lock加锁方法
    4.unLock解锁方法
    解析: 暂无解析

  • 第13题:

    (14)事务通过执行 LOCK-S(Q)指令来申请数据项Q上的【14】锁。


    正确答案:
    (14)共享

  • 第14题:

    当复位PCU时,我们可以用不同的指令,下列哪个指令不会导致BSCreset?()

    A.reset_sitepcu

    B.reset_sitepcu0

    C.lock0pcu0,unlock0pcu0

    D.reset_devicepcu


    参考答案:A, C, D

  • 第15题:

    在一个ASP应用中,可能同时有多个用户对一个Application对象进行访问,这时就有可能引起冲突,利用Lock与Unlock方法就可以解决这个问题。


    正确答案:正确

  • 第16题:

    纯电车启动时,启动钥匙由“LOCK”挡旋至“ON”挡,应保持1s~2s。


    正确答案:错误

  • 第17题:

    在ASP中,Application对象的()方法用于控制应用程序变量的读写操作。

    • A、Open()和Close();
    • B、Lock()和Unlock();
    • C、MoveNext()和Move();
    • D、Read()和Write()

    正确答案:B

  • 第18题:

    当复位PCU时,我们可以用不同的指令,下列哪个指令不会导致BSCreset?()

    • A、reset_sitepcu
    • B、reset_sitepcu0
    • C、lock0pcu0,unlock0pcu0
    • D、reset_devicepcu

    正确答案:A,C,D

  • 第19题:

    What happens when thread X executes a wait() method on object A, without owning object A’s lock?()  

    • A、 Compilation fails.
    • B、 An exception is thrown.
    • C、 The wait() method has no effect.
    • D、 Thread X receives the lock immediately.
    • E、 Object A moves the thread to the wait pool.

    正确答案:B

  • 第20题:

    正常情况下,驾驶舱内的门锁控制键一直处在normal位,机组人员可扳动控制键至lock位或unlock,且扳动后将固定在相应位置。


    正确答案:错误

  • 第21题:

    填空题
    图层列表框中Freeze/Thaw、Lock/Unlock分别表示图层的()与(),图层的()与()。

    正确答案: 冻结,解冻,锁定,解锁
    解析: 暂无解析

  • 第22题:

    单选题
    在ASP内建对象中,必须要有lock和Unlock方法以确保多个用户无法同时改变某一属性的对象()
    A

    Response

    B

    Session

    C

    Request

    D

    Application


    正确答案: B
    解析: 暂无解析

  • 第23题:

    单选题
    What happens when thread X executes a wait() method on object A, without owning object A’s lock?()
    A

     Compilation fails.

    B

     An exception is thrown.

    C

     The wait() method has no effect.

    D

     Thread X receives the lock immediately.

    E

     Object A moves the thread to the wait pool.


    正确答案: B
    解析: 暂无解析

  • 第24题:

    单选题
    在ASP.NET的内建对象中,必须要有Lock和Unlock方法以确保多个用户无法同时改变某一变量的对象是()
    A

    Cache

    B

    Session

    C

    Request

    D

    Application


    正确答案: A
    解析: 暂无解析