An example of single-threading vs multi-threading