Am Dienstag, 14. November 2006 18:17 schrieb Bulat Ziganshin:
> you mean that unix developers don't put any restrictions on sharing? :D

In general, no. You can e.g. even remove a file which is currently open 
(recommended pratice for temporary files) and even wilder things. :-) 
Depending on the *nix in question there are a whole bunch of locking 
possibilities: mandatory locks, non-mandatory locks, locks on regions of a 
given file, etc.

In a nutshell: There is no "right" way of doing file locking, it heavily 
depends on the platform and the application in question. Therefore the 
Haskell report was free to choose one specific way, which is probably as good 
as any other. Perhaps future Haskell revisions should offer a more generic 
locking API to expose modern features, but that's a different story...

Cheers,
   S.

Reply via email to