What is the difference between a lock and a latch in the context of concurrent access to a database?

前端 未结 8 1662
别跟我提以往
别跟我提以往 2021-01-30 06:46

I am trying to understand a paper on concurrent B-tree, in which the author mentioned latch vs lock, and how latches do not need a \"Lock Manager\". I have been trying to figure

8条回答
  •  旧时难觅i
    2021-01-30 07:15

    Locks can be added on database entities, e.g. tuples, transactions.

    Latches can be added on underlined data representation, e.g. page table in memory which maps page identifier to a specific frame.

提交回复
热议问题