Bad practice: busy waiting

from blog blog, | ↗ original
bad practice: busy-waiting Busy-waiting is one of the easiest ways of exhausting a cpu1: package main func main() { for true { /* complex logic */ } } What looks like an obvious bad construct one would never do by accident is often introduced on waiting for a resource or state change. One common place where such constructs are used is on...