flock()
The flock() function locks or unlocks a file. This is useful for managing access to files in a concurrent environment.