Jan-21-2022, 03:46 PM
Are you using Windows? Windows does multi-processing differently than Linux and Mac. In windows new processes are spawned and they do not share anything with the process that spawned them. This means the global variable in the main process and the global variable in the spawned process are not the same variable.
In Linux and Mac processes are forked, and they start out knowing everything about the process that spawned them.
In Linux and Mac processes are forked, and they start out knowing everything about the process that spawned them.