When does this happen? Thread suspended in critical section

I'm just wondering if the thread is in a critical section, can it be unloaded?

  • Topic A : Enter CR
  • Topic A : Pause
  • Thread B : wants to enter CR, but cannot, because Thread A has a lock

If Thread A is unloaded, and therefore the mutex lock is stuck with Thread A , what can be done about this?

+3
source share
2 answers

, . , , , , , ?

Thread B , A crtical . . A, , , thead B, , , .

+5

, A C. , B , C. B , ; Thread B ( ) , A ( ). .

, B , A ( ), A "" B. A C A , A . , A B-, , .

+6

Source: https://habr.com/ru/post/1735148/


All Articles