Mail Archives: djgpp/1999/04/07/08:17:18
Eli Zaretskii wrote in message ...
>
>
>> second of all, if you lock a file and another instance tries to write to
>> it, what happens? how can you see if a file or region is locked?
>
>On DOS/Windows or on Unix?
>
>On Unix, the other process which tries to write blocks until the file
>is unlocked. On DOS/Windows I think the write call fails, but you'll
>need to try to make sure.
It should be "On Unix, the other process which tried to write without test
lock before will be successful. However, if that process test lock
(with blocked) before write it will be blocked until that file is unlocked.
Or it will be failed if that process test lock without block."
Regards,
Tanes Sriviroolchai
- Raw text -