← BYTES
Go·Starter·Ref: 10.1.2

In one sentence, what is a goroutine?

Have a question about this video? Mention reference 10.1.2 when you contact us.

a.A separate operating system process managed by the OS scheduler
b.A type of error value returned by concurrent functions
c.A lightweight, independently executing function managed by the Go runtime, not the OS
d.A compile-time macro for generating repetitive code
A goroutine is a function running concurrently, scheduled by the Go runtime's own M:N scheduler onto a small pool of OS threads -- it is dramatically cheaper than an OS thread (starting with only a few KB of stack) which is why Go programs can comfortably run hundreds of thousands of them.

Find this on YouTube & Instagram

Every BYTES video is tagged with its reference number and topic — search any of these on YouTube or Instagram to find this one:

#BYTES#BYTES1012#Go