By using lsofcommand in UNIX. It wills list down PID of all the process which is using a particular file.