How to find out when a file opened by another process was closed ?

If we need to wait another process has finished working with a file, how can we be notified when the process closed the file ?