From the course: Python: Programming Efficiently

Unlock the full course today

Join today to access over 23,300 courses taught by industry experts.

Introduction to parallel programming

Introduction to parallel programming - Python Tutorial

From the course: Python: Programming Efficiently

Introduction to parallel programming

Moore's law is no more CPU speed center and sister densities have stopped increasing exponentially as they head for several decades. Now competing speed increases by architectural improvements and by packing multiple computing cores inside the same CPU. This means that the program that takes full advantage of modern process source must be able to run in parallel or multiple course. Unfortunately, Python at least as implemented in the standard C Python interpreter was not designed to exploit parallelism natively C python does support running concurrent threads which shared the same code and the same variables. But this can never really be executed in parallel. When one is running, the others are suspended and that's because C Python has no other protection against objects being corrupted in memory where multiple threads modify them at the same time, compiled Python libraries. Typically those that do math can and will use…

Contents