mutex in sync package and runtime is different,
mutex in runtime package is 
here, https://github.com/golang/go/blob/master/src/runtime/lock_futex.go#L46
i do not see there is a starving mode.

On Monday, February 1, 2021 at 12:38:08 AM UTC+8 jake...@gmail.com wrote:

> What makes you think it does not? Have you looked at Mutex.lockSlow()? I 
> have not really worked through the algorithm, but the comments do mention 
> starvation mode.
>
> On Sunday, January 31, 2021 at 10:15:23 AM UTC-5 cuiw...@gmail.com wrote:
>
>> why mutex in runtime do not need starve mode?
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/0cc1fae8-6c22-4e40-9645-425d12bb909dn%40googlegroups.com.

Reply via email to