Hi,
I want to do the foll steps:
- Check if someone has a lock on my file1.
- if file1 is locked by any other user
wait in a loop till another user releases lock - when lock released, lock file1.
- do procesing (write) on file1.
- processing complete. release lock on file1.
Please also tell me how the can Wait mechanism can it be implemented best?
Please reply