CS 134 OS-22: RCU-Intro

แชร์
ฝัง
  • เผยแพร่เมื่อ 2 ต.ค. 2024

ความคิดเห็น • 3

  • @FreemanEleanore-b1v
    @FreemanEleanore-b1v 21 วันที่ผ่านมา

    Thompson Jennifer Lee Brenda Anderson Jeffrey

  • @weihai1shen743
    @weihai1shen743 2 ปีที่แล้ว +2

    a nice elaboration, but I'm curious how to implement "wait all old readers done their jobs", using some counters or locks

    • @avgguy7129
      @avgguy7129 10 หลายเดือนก่อน +2

      I know this is a very late response, the answer to the question would be to add a counter (reference count) which will have the count of all existing processes. The wait time is called "grace period" where the guarantee of readers being done with their jobs in that time period will be the decrement of the reference counter as readers are getting done with their jobs. After grace period it is ensured to have the counter value of 0. And as such no readers from now are not allowed to go the old way. (from the old data).