ID generator
Thursday, November 8, 2007 at 9:41PM
cfelde in General Discussion, ID generator, Java, fast, thread safe
Hi,

I would like feed back on a ID generator I just made. What positive and negative effects do you see with this. It's programmed in Java, but could just as easily be programmed in any other typical language. It's thread safe and does not use any synchronization. When testing it on my laptop, I was able to generate 10 million IDs within about 15 seconds, so it should be more than fast enough.

Take a look at the attachment.. (had to rename it from IdGen.java to IdGen.txt to attach it)

IdGen.java
Article originally appeared on (http://highscalability.com/).
See website for complete article licensing information.