Python multiprocessing global (파이썬 멀티프로세 전역변수)

 




When a program is executed by implementing a multiprocessor with multiprocessing, a new process that is completely independent from a thread is executed, so global variables cannot be shared.
multiprocessing으로 멀티 프로세서를 구현하여 프로그램을 실행시키면 스레드와는 다르게 완전히 독립된 새로운 프로세스가 실행되기 때문에 전역변수를 공유할 수 없다.

0 댓글