Difference between racearound condition and deadlock

前端 未结 5 1928
遇见更好的自我
遇见更好的自我 2020-12-07 10:24

What is the difference between a dead lock and a race around condition in programming terms?

5条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-07 10:40

    Withe rest to Programming language if you are not locking shared resources and are accessed by multiple threads then its called as "Race condition", 2nd case if you locked the resources and sequences of access to shared resources are not defined properly then threads may go long waiting for the resources to use then its a case of "deadlock"

提交回复
热议问题