How are thread IDs created? (in Off-topic)


SNK3R March 9 2006 3:48 PM EST

The thread ID sequence during Alpha of CB1 goes like this:

000001, 000002, 000004, 000006, 00000F, 00000I, 00000W, 00000X, 00000b, 00000d, 00000e, 00000i, 00000j, 00000l, 00000r, and so forth.

Is there a relation between consecutive thread IDs? Does it really go in order? If so, there must've been threads deleted as per spaces noted above in ID, correct? Or, perhaps just the easier question: How are thread IDs created? Random combination? Also, do thread IDs re-cycle?

SNK3R March 9 2006 3:54 PM EST

Something I just realized that may be some relation between consecutive thread IDs: ANSI character values increase in order from number (1,2,3, etc.) to capital characters (A, B, C, D, etc.) and then to lower-case characters (a,b,c,d, etc.).

So, I guess I shall take an educational guess and ask if thread ID's are increased by ANSI value by one place of the 6 spots open (00000x) at a time?

AdminJonathan March 9 2006 3:59 PM EST

explanation

(you'll probably have to save a local copy to view as html since the mimetype is screwed up)

then look for the phrase "For the unique identifier msg_id..."

SNK3R March 9 2006 4:07 PM EST

Sweet! Thanks, Jon.

For the unique identifier msg_id we are using 6-character strings. The next ID after "00001m" is "00001n". Each character cycles through the integers, then the capital letters, then the lowercase letters. So after "00001z" the next message is "000020", 9 messages later, "000029", then "00002A", and "00002Z" will be followed by "00002a".

Looks like educational guesses really do work. ;)

Stephen March 9 2006 6:20 PM EST

Educational guesses are just lucky guesses that were correct with hindsight ;)

Stephen March 9 2006 6:27 PM EST

* And educated guesses too. Thanks Bast!
This thread is closed to new posts. However, you are welcome to reference it from a new thread; link this with the html <a href="/bboard/q-and-a-fetch-msg.tcl?msg_id=001jpj">How are thread IDs created?</a>