-snip-

>- in this instance we
>use unique ids generated using date, system time in milleseconds
(system(12)
>in udt) and pid combined together
>Symeon.

Not a bad idea, however you may encounter problems of losing data in
these 2 areas:

1. As processors get faster, the difference in execution time shortens
and it can be possible to generate the same key during the same
millisecond.   Adding a NAP 1 in my simulated testing eliminated the
duplicates. On one implementation of Pick (Altos?) I recall the
resolution of the system(12) function was only a second.

2. At least one time a year (in my timezone) the clock is turned back
one hour and it would be possible to overwrite existing keys during that
hour.

-Troy
-------
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to