O
O
Oleg Petrov2017-11-21 10:52:36
Python
Oleg Petrov, 2017-11-21 10:52:36

Can multiple copies of one of my programs running in Pycharm write data to the same file?

I run 5 copies of my program through pycharm, they all write data from time to time to the same file.
What could be the threat?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene Wolf, 2017-11-21
@Wolfnsex

I run 5 copies of my program through pycharm, they all write data from time to time to the same file. What could be the threat?
I don't think that Python's file manipulation mechanisms are any different from those in other languages. Therefore, I can assume that if you do not hang a lock on the file (and do not remove them later) - this can threaten the chaos of this very data in the file, and at most - an error during recording (and that's not a fact).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question