Python Multiprocessing on Windows and Linux

preview_player
Показать описание
Normally, code written in Python can be executed both on Linux and Windows without mayor changes. Except for multiprocessing. Both operating systems have very different behavior when it comes to forking or spawning child processes.
Рекомендации по теме
Комментарии
Автор

Great video! Is there a way to fork a process on windows?

bruno
Автор

is there anything alternative to if __name__ =="__main__":, as I am importing a file and the file contains a piece of code which does multi processing. and I call the function multiple times. but the process should only execute once

liyanth