channel and mutex eventually call futexsleep(in runtime source) when need to block
but when I tested sync.Mutex lock 10000 times, there is only 8 threads.. futex is os level operation(syscall), then futex sleep os-level thread(not goroutine) right? somebody help me understand... -- 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/7ea5dc7f-ea16-4bb7-a809-b87f9f1fa290n%40googlegroups.com.