|
|
|
|
|
by Animats
676 days ago
|
|
"Starvation mode kicks in if a goroutine fails to acquire the lock for more than 1 millisecond." That may mean that after 1ms, the mutex becomes more fair. That seems to be a further fallback than ending spinning. Go tends to use only one real thread per CPU, so the problems are different than they are in, say, Rust. Go is doing some CPU dispatching in user space. |
|