Concurrency and threading – the basics
This morning, I woke up as I do every day. I got out of bed, took a shower, and got dressed. Then I walked the dog for 30 minutes (it’s a Sunday today). I returned home, made some coffee, and then sat down to write this.
I am sure that your day looks the same in general. You do something, then you do the next thing. Things are done in order. Sometimes, I make a phone call to people in other time zones when I walk the dog, but most of the time, I do the things I do one at a time. It is more efficient that way. If I were to sit down to write this chapter but stop to walk the dog a bit after five minutes, then leave him standing near a tree while I run back to the house to write for five more minutes, followed by me running back to the dog to walk another 500 meters, things would never get done. I would get a workout with all the running back and forth, but it would be inefficient.
That is a silly way to lead your life (no judgment...