I have a very simple program written in go:
package main
import (
"fmt"
"time"
)
func main() {
fmt.Println("hello")
time.Sleep(5 * time.Second)
fmt.Println("good bye")
}
Now I'm building it using "go build .". When I look at htop to see the application running, it shows me that several processes are being executed on my machine.
Can someone explain to me why is that happening? I would expect a single goroutine program to run as single process.