Source Code: - The Go Programming Language
-
In line 174, why check
!starving
first? Once we have already statisfied line 165old&mutexStarving != 0
,starving
always is true. Is not it? -
Could someone explain the comment btw line 177-179? What does
two goroutines can go lock-step infinitely once they switch mutex to starvation mode
mean?
Appreciate any help~