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 - 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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
(Locked)
Computer architecture and optimization techniques1m 38s
-
(Locked)
Time profiling8m 19s
-
(Locked)
Memory profiling6m 42s
-
(Locked)
Algorithm complexity3m 24s
-
(Locked)
Introduction to parallel programming3m 49s
-
(Locked)
Challenge: Inverted index2m 18s
-
(Locked)
Solution: Inverted index1m 39s
-
(Locked)
-