Go's Anti-Starvation Scheduling Rules

To prevent goroutines from indefinitely starving in the global run queue, Go's scheduler incorporates a '61-tick rule,' periodically checking the global queue (approximately every 61 scheduling iterations) even when local queues are busy, ensuring a balance between local efficiency and global fairness.

Sources

Open the full topic