The next time you pay for groceries in a supermarket, look at the lines at the checkout stands. If there’s only one open checkout stand, there’s likely a long line of customers waiting to pay. That means everyone has to wait their turn before they can leave. However if there are multiple checkout stands open, more customers can pay at the same time and the wait time for everyone is much less. That’s the basic idea behind multithreaded programming.
In the old days of computers, tasks ...