Re: Update view of database on multiple web clients



On Tue, 28 Feb 2006 16:40:38 GMT, David Segall <david@xxxxxxxxxxx>
wrote, quoted or indirectly quoted someone who said :

If two users
happen to update the field at the same time the second users version
will also prevail but the first user must be given the chance to see
it and complain about it.

Given subnanosecond clocks in CPUs, there is no chance of two updates
being simultaneous. You have to define a band of time by which YOU
means simultaneous, for which this evasive action gets invoked.

It would work like this. When you update, you timestamp with the
update. Before you update you look at the timestamp. if it was > X
seconds ago, you go ahead with the update. Otherwise do your evasion
thing, letting a user update his own change without debate, if there
has not been recent debate.

--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
.



Relevant Pages

  • Re: In the News: SMU Professor Declines Invitation to Intelligent Design Debate
    ... invitation to join a debate over the validity of evolution vs. ID ... liberals would have jumped at the chance to show the validity and ... today, Mycoplasma hominis H39, has about 600 different proteins. ... How many TOTAL atoms were thought to be in existence at the time? ...
    (talk.origins)
  • Re: Barack Hussein Obama Was AWOL For Over 100 of His Senate Votes!!
    ... I don't give a donkey's ass about your personal opinions about who discusses in a free Usenet debate. ... I don't know what crystal ball you use to find out whether the person you discuss with should be "a person with little experience", but I must say you demonstrate very well why you can't save an undernourished donkey. ... The difference being that I never *presume* anything, but only said that people shoud ask him if they got a chance, but I guess that touches upon the fact that you hardly ever lift that little bottom of yours to get a chance for real debates IRL. ... what the fuck ever asshole. ...
    (alt.politics)
  • Re: OT: Back to Monty Hall for a sec
    ... Review your basic math on combinations and permutations..... ... thing is just a new twist on an old mathematical debate. ... there was a 1:3 chance of picking the correct door. ...
    (rec.boats)
  • Re: OT: Back to Monty Hall for a sec
    ... I haven't fallen into any trap and there is no math to be debated... ... there was a 1:3 chance of picking the correct door. ... Included in the debate are many with PhDs in math and ...
    (rec.boats)
  • A question for Americans.
    ... of the so-called 'evolution-creation' debate in America (so-called ... Is there any chance ... I have always thought of America as the powerhouse of ideas in the ... The centre of Western culture. ...
    (talk.origins)