Question:Which of the following techniques will guarantee a lock safe from any race condition? 

A Using flock() to lock the desired file 

B fopen()’ing a file in the operating system’s temporary directory 

C Creating a temporary file with tempnam() 

D Using mkdir() to create a directory and use it as a lock reference 

E Using tmpfile() to create a temporary file 

+ Answer
+ Explanation
+ Report
Total Preview: 981

Copyright © 2024. Powered by Intellect Software Ltd