Learning about Golang go-routines, LWPs, async pre-emption, and timing
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
- 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
GOMAXPROCSis set to 16.
$ cat blocking.go