in reply to
Re^2: Thread safe equivalent of LINUX touch command
in thread Thread safe equivalent of LINUX touch command
Why not? AFAICT, if one thread touches a file then it will succeed, and if another thread tries to touch a file, then it too will succeed. There is nothing wrong in both threads succeeding and I don't think there is any lock issues apart from the actual creation of the file and/or setting of the modification date, which are probably operating/filesystem issues and should be thread safe in any event.
A Monk aims to give answers to those who have none, and to learn from those who know more.