Possible Duplicate:
How can I determine what process has a file open in Linux?
Can I run a script/use a tool that monitors a file and counts the number of access that are made to it (both read and write). I am running multiple threads and trying to record the number of reads/writes that are made to the file.