Multiprocessing in Python: Logging

preview_player
Показать описание
In this video, we will be continuing our treatment of the multiprocessing module in Python. Specifically, we will be seeing how to use the logging module along with built-in logging methods from the multiprocessing module to output information that may be of interest when running your own multiprocessing code.

"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:

For more videos on 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:

If you've found this video helpful and want to stay up-to-date with the latest videos posted on this channel, please subscribe:
Рекомендации по теме
Комментарии
Автор

Please do a video series on Design patterns involving Python. That would be of great help.

sudarsandm
Автор

This is great tutorial. Thanks. But I had to go through a whole tutorial to realize what logging does, lol. :) As far as I could understand, the logging in this video is specific to multiprocessing. But I'm not sure how it's really doing the "logging" since I don't see any logger.info(msg) or logger.error(msg) or etc.

scienceblossom
join shbcf.ru