What is thread contention?

后端 未结 10 943
[愿得一人]
[愿得一人] 2020-11-27 09:53

Can someone please explain simply what thread contention is?

I have googled it, but cannot seem to find a simple explanation.

10条回答
  •  萌比男神i
    2020-11-27 10:25

    Essentially thread contention is a condition where one thread is waiting for a lock/object that is currently being held by another thread. Therefore, this waiting thread cannot use that object until the other thread has unlocked that particular object.

提交回复
热议问题