My problem is like this..
Reading a file sequntially and based on information reading/writing other files on key based.
Sometimes, the required file (record) is locked by other user. If it is locked, system is not returning the control back to program. Instead keep on trying and sending information about record lock to other user.
As I am running a cron job, no informnation is getting populated. As we are not aware of record lock, program is running for long time as nobody is noticing about the lock.
I am looking for
1. Any way to know the lock before reading the file?
2. If file (record) is locked by other user, how to get back control to program?
3. Help in notification of record lock or programatic elimination of lock.
4. Any pointers in helping avoiding record locks?
Thanks,
Suresh.
Reading a file sequntially and based on information reading/writing other files on key based.
Sometimes, the required file (record) is locked by other user. If it is locked, system is not returning the control back to program. Instead keep on trying and sending information about record lock to other user.
As I am running a cron job, no informnation is getting populated. As we are not aware of record lock, program is running for long time as nobody is noticing about the lock.
I am looking for
1. Any way to know the lock before reading the file?
2. If file (record) is locked by other user, how to get back control to program?
3. Help in notification of record lock or programatic elimination of lock.
4. Any pointers in helping avoiding record locks?
Thanks,
Suresh.