Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How good is sys(2015) in multiuser environment
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00374031
Message ID:
00392563
Vues:
15
>For example, if the workstations should periodically synchronize their clock >with the server, or some external reference (sometimes necessary) then their >clock can go backwards then the possibility of creating a duplicate key is not >zero and will be proportional to the adjusted time (for example if the adjust >was only .1 second the collision will be less probable than a 10 minute >adjustment).

I over-simplified in my explanation. CoCreateGuid uses the following to create the GUID:

1. NIC address. This assures that the GUID is globally unique.
2. System clock time. This assures that the GUID is unique to the local machine, as well as globally unique given #1.
3. A pair of persistent counters that will account for system clock scenarios as you mention above. This assures that the GUID is unique, even if you reset the system clock, or if the OS resets it for Daylight Savings Time (for instance).
Mike Stewart
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform