Question: what is the difference between goroutine and thread?
Answer: Goroutines have growable segmented stacks. Goroutines have a faster startup time than threads. Goroutines come with built-in primitives to communicate safely between themselves (channels). ... Goroutines are multiplexed onto a small number of OS threads, rather than a 1:1 mapping.