[REBOL] Re: Multiuser database
From: petr:krenzelok:trz:cz at: 21-Mar-2006 10:17
Thanks for explanation, Kai ....
> So semaphores are the better way...
>
Are you talking about semaphores as some kind of os functionality?
Because, hand made semaphores was what I was talking about .... But how
to make sure process does not crash and you don't end-up with dead-lock
sitting on your hd? So if we can't depend upon file-locking when opened
under Unix (which does seem just plain crazy and wrong to me, because if
I have a lock, how is that other process can delete what I requested to
have locked?!), the only technique I can come up with right now is to
use some kind of time-stamp and regard .lock file being dead if the app
does not renew it in certain time period. But not sure it is a good
method, because you would make your app dependant upon timers ....
-pekr-