An entry in the system file table is made for each file that is opened by some current process.
An entry contains
- current file position
- reference count - how many processes are pointing to this entry.
The reference count will be 2 if a parent has an open file and forks a child.
But if two unrelated processes open the same file, there will be two separate entries and the reference count in each will be 1.