Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Re: Multiuser database

From: gabriele:colellachiara at: 21-Mar-2006 16:37

Hi Petr, On Tuesday, March 21, 2006, 12:17:25 PM, you wrote: PK> uh, that all sounds crazy and because of what? Because unix can't PK> guarantee you file-lock if you particularly ask for it? What a weak PK> system .... Unix gives you a lock if you ask about a lock. But if you don't, then it doesn't - it's that simple. Locking is not a trivial issue, and that's why OS' provide semaphores and things like that natively. The best solution is always to have a single-threaded process providing serialized access to the given resource. When you can't do that, you are forced to deal with troubles. A good solution that hasn't been mentioned so far is to use a TCP listen port as the lock. Two processes are (or at least should not) never allowed to listen to the same port. Regards, Gabriele. -- Gabriele Santilli <> --- Colella Chiara software division ---