Posts

Parallel Programming: MultiProcessing in Python

Image
The hunger for computation power among programmers, gamers, scientists, software developers and most humans that know how to use a computer in general is immense. We are always looking for applications that are less compute intensive and more efficient. This allows us to make use of our computer setups more efficiently. However, many of us do not fully utilize the computation power already available to us on our computers. Utilizing this power when needed can lead to exponentially better performances and usually you can run the processes 2-3 times faster with some changes in code. How do we do this you ask? Well let's dive in. This blog focuses on parallel programming. i.e, running a program on multiple processors simultaneously. When you run your program it usually uses one of the cores in your computer. However, most computers have multiple cores. Depending on your processor it may be dual core, quad core, octa core or may contain more cores. If (lets say) you have a