Goroutine

Noun · Development

Definitions

  1. A lightweight, user-space thread managed by the Go runtime rather than the OS, enabling massive concurrency with minimal overhead. Goroutines start with only a few kilobytes of stack and are multiplexed onto OS threads by Go's scheduler.

    In plain English: Go's version of lightweight threads — you can run hundreds of thousands of them simultaneously because they're much cheaper than traditional threads.

    Example: "We spawned 100,000 goroutines to handle WebSocket connections and the server barely noticed."

Related Terms