Understanding Goroutines

Software development and programming has advanced quite a lot in the past decade. Many concepts that were previously considered academic and inefficient are beginning to find a place among modern software solutions. Two such concepts are coroutines (goroutines in Go) and channels. Conceptually, they have evolved over time and they have been implemented differently in each programming language. In many programming languages such as Ruby or Clojure, they are implemented as libraries, but in Go, they are implemented within the language as a native feature. As we shall see, this makes the language really modern, quite efficient, and an advanced programming language.

In this chapter we will try to gain an understanding of Go by looking at goroutines and the following topics:

  • Concurrency and parallelism
  • Go's runtime scheduler
  • Gotchas when using goroutines
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.15.214.155