Ways to Find a Race Condition

后端 未结 8 1154
无人共我
无人共我 2021-02-05 07:02

I have a bit of code with a race condition in it... I know that it is a race condition because it does not happen consistently, and it seems to happen more often on dual core ma

8条回答
  •  南笙
    南笙 (楼主)
    2021-02-05 07:51

    Indeed there are some attempts to find race conditions automatically.

    • Lockset-Based Race Checker
    • Happens-Before Race Detection
    • Hybrid Race Detection

    Another term I read in conjunction with race condition detection is RaceFuzzer, but I was not able to find really useful information about it.

    I think this is a relatively yound field of investigation so there are - as far as i know - mainly theoretic papers about this subject. However, try googling one the above keywords, maybe you will find some useful information.

提交回复
热议问题