Multi-access to file on NFS mount
NFS multi-access to file
04-apr-00 : 8:03 :ranadive
Hi,
I am currently working on a realtime system. The environment have two Solaris server both connected to NFS mount. There is a Process 1 (code is written is C) on Server 1 which Creates and writes to a data file on NFS mount. Data file created is a simple ASCII file with \n at the end. Process 2 (code is written is C) runs on Server 2 reads this file.
I observed that Process 2 sometimes read partial record (it uses fgets function to read from file) i.e. record does not contain the tail end and \n etc.
Now if I run the same Process 2 on Server 1 instead of Server 2 then everything works fine.
Can any one help me why i see such a behaviour and how to fix it.
Thanks in advance.