Multithreading and GUID
-
I have a program which generates GUID.Is there a chance that more than one thread spawned at the same time (< 1 millisec) in the same machine to have same GUID?. Thanks, Rane
There is no chance, unless GUID generation mechanism is broken, I guess. Why don't you make a little test? :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
I have a program which generates GUID.Is there a chance that more than one thread spawned at the same time (< 1 millisec) in the same machine to have same GUID?. Thanks, Rane
Rane wrote:
I have a program which generates GUID.Is there a chance that more than one thread spawned at the same time (< 1 millisec) in the same machine to have same GUID?.
I don't think so. The GUIDs will be different.
“Follow your bliss.” – Joseph Campbell