Run the same python code in two terminals, will they interfere with each other?

I have a python script that takes some time to complete its execution depending on the argument passed. So, if I run them from two terminals with different arguments, do they get their own version of the code? I do not see two generated files .pyc.

Terminal 1 works: python prog.py 1000 > out_1000.out

Before the script runs on terminal 1 termination, I run another; thus, terminal 2 works:python prog.py 100 > out_100.out

Or, basically, my question is, can they interfere with each other?

+4
source share
3 answers

, , . , , . .

: . script, . , . , , . , , , (IPC ), .

, , .

+4

Python . script , , , .

+3

Python script , . , , , .pyc, , .py.

  1. , - - , VERSION CONTROL. github git .

  2. a → . , . , , " > " SAME , " > " .

  3. . .

  4. " ". , (, , ), . ( , , , , )

0
source

All Articles