In the previous chapter, you learned about Unix signal handling as well as adding support for pipes and creating graphical images in Go.
The subject of this really important chapter is goroutines. Go uses goroutines and channels in order to program concurrent applications in its own way while providing support for traditional concurrency techniques. Everything in Go is executed using goroutines; when a program starts its execution, its single goroutine automatically calls the main() function in order to begin the actual execution of the program.
In this chapter, we will present the easy parts of goroutines using easy to follow code examples. However, in Chapter 10, Goroutines - Advanced Features, that is coming next, we will talk about more important and advanced techniques related to goroutines and channels; so, make sure that you fully understand...