On Tue, Aug 23, 2022 at 8:40 PM Nihan Khan <nihan.k...@outlook.com> wrote:
> How golang runtime detect deadlock internally? I haven't checked the runtime sources about this, but my guess is something like is done when the scheduler looks for something to do: 'if numberOfGoroutinesBlocked() != 0 && numberOfGoroutinesRunnable() + numberOfGoroutinesRunning() == 0 { killMePlease() }'. -- 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/CAA40n-WAnBj0jGeE0yXaUFnxbY-gpPQrJHV0qtQtvXZ3rK33uQ%40mail.gmail.com.