Create a script which is forced to execute non-cooperative go-routines one at a time because they are only running on a single LWP
- Try to minimize the number of concurrent threads / LWP via
GOMAXPROCS
. - In theory, the go-routines should execute one after the other since they are non-cooperative?
- Note: On a 16 core box, by default Golang spots the 16 cores available and
GOMAXPROCS
is set to 16.
$ cat blocking.go