Running two python processes

I am running two Python codes edited by two different text editors (Eclipse and Spyder), and from the task manager I saw two python.exe processes. Will these two processes interfere with each other? I am worried because I used almost the same set of variable names in these two scenarios, and both codes work with the same data input with a very similar data structure.

+4
source share
1 answer

Processes know nothing about each other.

It doesn't matter if they were identical or not. Each process allocates OS resources, so each process has its own resources, and they will not overlap. In fact, very often several similar Python processes are used for multiprocessing, when you have processing that can be executed in parallel and logically distributed for each process.

If they do not use a shared resource, such as a file, you have nothing to worry about.

+4
source

Source: https://habr.com/ru/post/1548146/


All Articles