I should also mention there are two strategies that you will not manage to verify the existence of a file. Possibly the issue will be permission denied or no these file or directory.This can make it important that the lock is produced through the holding thread when it is concluded with it. If it never releases it, then the opposite thread will wai