Spinlock

Creator
Creator
Seonglae ChoSeonglae Cho
Created
Created
2023 Aug 23 15:42
Editor
Edited
Edited
2023 Nov 19 15:56
Refs

Spinlock (software-only)

  1. turn only ping-pong like one-to-one problem
  1. flag only symultaniously raising flag problem
  1. Peterson's algorithm use flag and turn variable
     

    spinlock (hardware atomic)

    by hardware support atomic operation
    atomic operation: cannot be disturbed
     
    acquire()/lock(): before critical section release()/unlock(): after critical section
     
     
     
     

    Recommendations