There are several ways to make better use of the capabilities of your computer. Multiple threads allow your application to perform multiple things at the same time. With this power comes a lot of responsibility and you should also realize that it’s not the answer to everything.
Here’s three common ways to speed up your application:
- Get a faster computer. Computers have steadily increased in speed and power but we can’t count on this continuing.
- Write better and more efficient code. Use better algorithms. The power of selecting the proper algorithm cannot be stressed enough. This is big. And for a large enough problem, will always win.
- Do more things at the same time. This is multithreading.
Multithreading is not just for speeding up your application though. This episode started getting too long to try explaining everything. Instead, this episode explains more about why you need to understand threads and what they are.