3 ms·
Yes, I should have emphasized "usually". I also locked up a program by inadvertently creating a small goroutine with a busy-loop (the typo being time.Sleep(1))
by ominous_prime 14y ago
Yes, I should have emphasized "usually".
I also locked up a program by inadvertently creating a small goroutine with a busy-loop (the typo being time.Sleep(1)). That little loop prevented any other goroutines from getting scheduled, though it wasn't hard to deduce what was happening, since the CPU was running at 100%.