What's the best linux kernel locking mechanism for a specific scenario

后端 未结 3 1877
甜味超标
甜味超标 2021-02-09 13:25

I need to solve a locking problem for this scenario:

  1. A multi CPU system.
  2. All of the CPU\'s use a common (software) resource.
  3. Read only access to
3条回答
  •  梦如初夏
    2021-02-09 14:08

    If the work you do while holding the lock is small you can try a normal mutex, non reader-writer. It's more efficient.

提交回复
热议问题