Why Parallel Programming?
Enter the world of parallel programming and learn why it's so essential.
We'll cover the following
Need for speed
Why parallel programming? Simply put, because it may speed up your code. Unlike 10 years ago, today, your computer (and probably even your smartphone) has one or more CPUs that have multiple processing cores. This helps with desktop computing tasks like multitasking (running multiple programs, plus the operating system, simultaneously). For scientific computing, this means that we have the ability in principle of splitting up our computations into groups and running each group on its own processor.
Utilities for processor usage
Most operating systems have a utility that allows us to visualize processor usage in real-time. Mac OSX has “Activity Monitor”, Gnome/GNU Linux has “gnome-system-monitor” and Windows has “Task manager”. Fire it up, and run a computationally intensive program you have written, and what you’ll probably see is that you have a lot of computational power that is sleeping. Parallel programming allows us in principle to take advantage of all that dormant power.
It’s obvious that parallel programming is a very powerful tool, especially with the degree of freedom it provides. However, there are certain types of parallel programming which fit different situations. We’ll look at these types next.
Create a free account to access the full course.
By signing up, you agree to Educative's Terms of Service and Privacy Policy