Multiprocessing in Python: Locks

Published: 10 October 2018
on channel: LucidProgramming
31,872
516

In this video, we will be continuing our treatment of the multiprocessing module in Python. Specifically, we will be making use of the "lock", or equivalently, "mutex" object in the multiprocessing module. We will see an example as to why you would want to make use of locks in your program.

According to the official documentation (https://docs.python.org/2/library/mul...

"multiprocessing is a package that supports spawning processes using an API similar to the threading module. The multiprocessing package offers both local and remote concurrency, effectively side-stepping the Global Interpreter Lock by using subprocesses instead of threads. Due to this, the multiprocessing module allows the programmer to fully leverage multiple processors on a given machine. It runs on both Unix and Windows."

Software from this video:
https://github.com/vprusso/youtube_tu...

For more videos on multiprocessing:
http://bit.ly/lp_multiprocessing

Do you like the development environment I'm using in this video? It's a customized version of vim that's enhanced for Python development. If you want to see how I set up my vim, I have a series on this here:
http://bit.ly/lp_vim

If you've found this video helpful and want to stay up-to-date with the latest videos posted on this channel, please subscribe:
http://bit.ly/lp_subscribe


On this page of the site you can watch the video online Multiprocessing in Python: Locks with a duration of hours minute second in good quality, which was uploaded by the user LucidProgramming 10 October 2018, share the link with friends and acquaintances, this video has already been watched 31,872 times on youtube and it was liked by 516 viewers. Enjoy your viewing!